django-sendfile
django-sendfile copied to clipboard
Apache 2.4 EnableSendfile as a potential replacement for XSendfile
Apache 2.4 is not supported officially by mod_xsendfile, but it seems the EnableSendfile on
configuration option that ships with my Apache 2.4 installation accomplishes the same thing. Switching to SENDFILE_BACKEND = 'sendfile.backends.xsendfile'
improves performance with this setting on regardless of whether or not mod_xsendfile is installed on the machine. I may have gotten lucky with my configuration, but I think EnableSendfile on
should be investigated as the long-term replacement for mod_xsendfile for this package.
Update: It seems that EnableSendFile on
in Apache 2.4 is not supported through the SENDFILE_BACKEND = 'sendfile.backends.xsendfile'
configuration option.
Nonetheless, I still think EnableSendFile on
should be investigated as a long-term replacement for mod_xsendfile
. I'll look into it.
EnableSendFile doesn't do what you think... see https://httpd.apache.org/docs/2.4/mod/core.html#enablesendfile. It may provide some performance benefits in some circumstances alongside the use of mod_xsendfile but not as a replacement for it.
I understand. Thanks