Jump to content


Photo

Static content limited to 255 characters (what?!)


  • Please log in to reply
1 reply to this topic

#1 likebetter.com

likebetter.com
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 October 2006 - 02:40 PM

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.

#2 likebetter.com

likebetter.com
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 October 2006 - 07:00 PM

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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users