@@ -3,7 +3,7 @@ WSGIScriptAlias
33===============
44
55:Description: Maps a URL to a filesystem location and designates the target as a WSGI script.
6- :Syntax: ``WSGIScriptAlias `` *URL-path file-path|directory-path *
6+ :Syntax: ``WSGIScriptAlias `` *URL-path file-path|directory-path * `` [ `` * options * `` ] ``
77:Context: server config, virtual host
88
99The WSGIScriptAlias directive behaves in the same manner as the
@@ -59,6 +59,44 @@ location, potentially bypassing the WSGIScriptAlias and revealing the
5959source code of the WSGI scripts if they are not restricted by a
6060`<Directory >`_ section.
6161
62+ Options which can be supplied to the ``WSGIScriptAlias `` directive are:
63+
64+ **process-group=name **
65+ Defines which process group the WSGI application will be executed
66+ in. All WSGI applications within the same process group will execute
67+ within the context of the same group of daemon processes.
68+
69+ If the name is set to be ``%{GLOBAL} `` the process group name will
70+ be set to the empty string. Any WSGI applications in the global
71+ process group will always be executed within the context of the
72+ standard Apache child processes. Such WSGI applications will incur
73+ the least runtime overhead, however, they will share the same
74+ process space with other Apache modules such as PHP, as well as the
75+ process being used to serve up static file content. Running WSGI
76+ applications within the standard Apache child processes will also
77+ mean the application will run as the user that Apache would normally
78+ run as.
79+
80+ **application-group=name **
81+ Defines which application group a WSGI application or set of WSGI
82+ applications belongs to. All WSGI applications within the same
83+ application group will execute within the context of the same Python
84+ sub interpreter of the process handling the request.
85+
86+ If the name is set to be ``%{GLOBAL} `` the application group will be
87+ set to the empty string. Any WSGI applications in the global
88+ application group will always be executed within the context of the
89+ first interpreter created by Python when it is initialised. Forcing
90+ a WSGI application to run within the first interpreter can be
91+ necessary when a third party C extension module for Python has used
92+ the simplified threading API for manipulation of the Python GIL and
93+ thus will not run correctly within any additional sub interpreters
94+ created by Python.
95+
96+ If both ``process-group `` and ``application-group `` options are set, the
97+ WSGI script file will be pre-loaded when the process it is to run in is
98+ started, rather than being lazily loaded on the first request.
99+
62100.. _Alias : http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
63101.. _DocumentRoot : http://httpd.apache.org/docs/2.2/mod/core.html#documentroot
64102.. _<Directory> : http://httpd.apache.org/docs/2.2/mod/core.html#directory
0 commit comments