Jump to content

Static content limited to 255 characters (what?!)


likebetter.com

Recommended Posts

Either this is really weird or really stupid of me.

I'm setting up a new Apache server with php5. I'm using the latest Apache (2.x.x) on Fedora FC5.

Loading of PHP files works. But when I try to load any static file (txt, css, etc), it returns a blank file to the browser for files larger than 255 characters. It reports 200 OK and the content-length header is reported correctly (256 bytes). But no content.

Drop off one character and apache sends the file fine with all the content.

Any ideas? This is starting to feel like voodoo.
Link to comment
Share on other sites

Okay, I figured it out, but it wasn't obvious. I neglected to mention that this FC5 box was running on vmware inside a windows xp machine. If that's not custom enough for you, the web root was set to a shared vmware directory. After much sleep I took another look at httpd.conf, and sure enough there was a option causing this behavior: EnableSendFile
I set it to 'off' and everything started working again. I don't really understand why Apache would behave in this way when using NFS (especially because no errors were being written in the logs), but I'm just happy it's all working now.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.