Support » Fixing WordPress » Multiesite Byte Handling?

  • Does anyone know a workaround to get this working so I could stream video to iOS devices?

    I read this;

    “Serving video to iOS devices does not work in Multisite WordPress due to lack of byte-range support” Apparently iOS requires byte-range support for audio and video. Serving a static .mp4 file to an iOS from Apache works fine, but serving the same file from a WordPress MS 3.01 installation fails. This is because the file URL is rewritten to use ms-files.php. The PHP file does a readfile($file) on the file to serve it. This is incompatible with iOS devices and will fail.”

    But I noticed people listing workarounds. I’m just wondering if anyone would know any? I’ve tried mod_xsendfile and it didn’t work, or perhaps I didn’t configure right. Not sure.

Viewing 1 replies (of 1 total)
  • Finally have the solution;

    After 6 days of pure sadness, this ended up being the fix:

    Here’s how to get it working on CentOS 5 with the packaged Apache httpd:

    Nils Maier wrote the module for Apache httpd. Download the source and take some time to review the docs there. Compile and install the module on the command line: /usr/sbin/apxs -cia mod_xsendfile.c If you don’t have apxs, you probably need to install the httpd-devel package.

    Get that with this command:

    yum install httpd-devel

    Once compiled and installed, you’ll need to enable it in your httpd.conf or .htaccess (I enabled it by putting a file in my conf.d directory). These are the directives you’ll need to set: *(Note, I put this in my /etc/httpd/conf.d/wordpress.conf file instead of the httpd.conf.)

    XSendFile on
    XSendFileAllowAbove on

    Now restart Apache httpd

    /sbin/service httpd restart

    Finally, you’ll need to enable the support in your wp-config.php: define(‘WPMU_SENDFILE’, true);

Viewing 1 replies (of 1 total)
  • The topic ‘Multiesite Byte Handling?’ is closed to new replies.