Apache Httpd Server strange behavior

5 views
Skip to first unread message

Lei

unread,
Jan 14, 2013, 10:37:17 AM1/14/13
to programmin...@googlegroups.com
Using XAMPP to host a php based web application in local pc. Sometimes there is a weird situation happened: when I tried to update a image in my img folder, the server will not update that img if I use the same name to replace the old one in that folder. The server seemed to cache the older images in somewhere while the new one doesn't show up unless you use a new name for the updated image in the same folder.

Lei

unread,
Jan 14, 2013, 10:53:33 AM1/14/13
to programmin...@googlegroups.com
What was mind boggling was that updates to the php html or any other parsed file format worked just fine.
I looked further into the issus and found that apache has a glitch with network mounted folders of NTSF format. Something to the effect that non-parsed elements are sent to the browser and since the file format and permissions on the network drive were incapatible makes apache cache some how. So we want apache to stop processing these elements and force it to read them each time they are requested.
--->add this to the bottom of the file /etc/apache2/apache.conf

#Disable image serving for network mounted drive
EnableSendfile off

the above configuration is in apache-httpd.conf file for xampp
Reply all
Reply to author
Forward
0 new messages