swh:1:snp:973504f75325e1c705c39106a2685791af62e9e3
Raw File
Tip revision: d5ef45a0e0a202811262316299b9b954c4b85144 authored by Nikita Manovich on 18 May 2023, 18:40:40 UTC
Release v2.4.4
Tip revision: d5ef45a
mod_wsgi.conf
LoadModule xsendfile_module /usr/lib/apache2/modules/mod_xsendfile.so
XSendFile On
XSendFilePath ${HOME}/data/
XSendFilePath ${HOME}/static/

# The presence of an Apache output filter (mod_xsendfile) causes mod_wsgi
# to internally convert HEAD requests to GET before passing them to the
# application, for reasons explained here:
# <http://blog.dscpl.com.au/2009/10/wsgi-issues-with-http-head-requests.html>.
# However, we need HEAD requests passed through as-is, because the TUS
# protocol requires them. It should be safe to disable this functionality in
# our case, because mod_xsendfile does not examine the response body (it
# either passes it through or discards it entirely based on the headers),
# so it shouldn't matter whether the application omits the body in response
# to a HEAD request.
WSGIMapHEADToGET Off
back to top