From: Mike Rumph The
-Description: Enable or disable internal redirect responses from the
backend
+Syntax: ProxySCGIInternalRedirect On|OffSyntax: ProxySCGIInternalRedirect On|Off|HeadernameDefault: ProxySCGIInternalRedirect OnContext: server config, virtual host, directory Status: Extension
+Module: mod_proxy_scgi Compatibility: The Headername feature is available in Apache
+httpd 2.5.0 and later. ProxySCGIInternalRedirect enables the backend
to internally redirect the gateway to a different URL. This feature
originates in mod_cgi, which internally redirects the
response if the response status is OK (200) and
- the response contains a Location header and its value starts
- with a slash (/). This value is interpreted as a new local
- URL that Apache httpd internally redirects to.Location (or configured alternate
+ header) and its value starts with a slash (/). This value is
+ interpreted as a new local URL that Apache httpd internally redirects to.
mod_proxy_scgi does the same as
mod_cgi in this regard, except that you can turn off the
- feature.
Location.
- ProxySCGIInternalRedirect Off+
ProxySCGIInternalRedirect Off + +# Django and some other frameworks will fully qualify "local URLs" +# set by the application, so an alternate header must be used. +<Location /django-app/> + ProxySCGIInternalRedirect X-Location +</Location>