HostOnNet Blog

Apache serve blank page for static files in cifs mount

Looking for Linux Server Admin or WordPress Expert? We can help.

We use Linux guest on WMware as development web server.

Files are stored in a windows share. This share in mounted inside DocumentRoot of apache web server.

Today i have to reinstall web server as it created some disk issue after a HDD fail.

After reinstall, static files (css, images, videos) when accessed, serve a blank file. If we save the file, we get a file of 0 byte size.

This is fixed by setting

EnableSendfile off

in /etc/httpd/conf/httpd.conf file.

Posted in Apache

3 Responses to Apache serve blank page for static files in cifs mount

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.