django-sendfile icon indicating copy to clipboard operation
django-sendfile copied to clipboard

Apache 2.4 EnableSendfile as a potential replacement for XSendfile

Open chrisconlan opened this issue 7 years ago • 3 comments

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.

chrisconlan avatar Jan 04 '18 04:01 chrisconlan

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.

chrisconlan avatar Jan 24 '18 15:01 chrisconlan

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.

Centuriondan avatar Oct 05 '18 21:10 Centuriondan

I understand. Thanks

chrisconlan avatar Oct 08 '18 12:10 chrisconlan