Skip to content

Commit ef3c4fd

Browse files
Add docs for WSGIErrorOverride directive.
1 parent d49ed1b commit ef3c4fd

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
=================
2+
WSGIErrorOverride
3+
=================
4+
5+
:Description: Enable/disable use of Apache error documents.
6+
:Syntax: ``WSGIErrorOverride On|Off``
7+
:Default: ``WSGIErrorOverride Off``
8+
:Context: server config, virtual host, directory, .htaccess
9+
10+
The `WSGIErrorOverride`` directive when set to `On`, and the WSGI application is
11+
running in daemon mode, will result in Apache error documents being used rather
12+
than those passed back by the WSGI application. This allows error documents to
13+
match any web site that the WSGI application may be integrated as a part of.
14+
This feature is akin to the `ProxyErrorOverride`` directive of Apache but for
15+
mod_wsgi only.
16+
17+
Note that this directive has no effect when the WSGI application is running in
18+
embedded mode.

docs/configuration-directives/WSGIMapHEADToGET.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
==================
1+
================
22
WSGIMapHEADToGET
3-
==================
3+
================
44

55
:Description: Enable/disable mapping of HEAD request to GET.
66
:Syntax: ``WSGIMapHEADToGET On|Off|Auto``

docs/configuration.rst

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Configuration
1515
configuration-directives/WSGIChunkedRequest
1616
configuration-directives/WSGIDaemonProcess
1717
configuration-directives/WSGIDestroyInterpreter
18+
configuration-directives/WSGIErrorOverride
1819
configuration-directives/WSGIImportScript
1920
configuration-directives/WSGILazyInitialization
2021
configuration-directives/WSGIMapHEADToGET

0 commit comments

Comments
 (0)