Jaime Frutos Morales's blog

07/10/2009

Tip: Apache serving a network-mounted resource

Filed under: SysAdmin — acidborg @ 13:27

If you need to serve a network-mounted resource (NFS or SMB) using Apache, you may need to disable SendFile. To do it, just edit your apache2.conf (or httpd.conf , depending on your distro) and modify the following line:

EnableSendfile On

leaving it like this:

EnableSendfile Off

You can disable SendFile just for a given resource adding EnableSendfile Off inside its Directory directive.

Advertisements

Blog at WordPress.com.

%d bloggers like this: