Config updates for xenial
[sysconfig/apache2.git] / mods-available / wsgi.conf
1 <IfModule mod_wsgi.c>
2
3
4     #This config file is provided to give an overview of the directives,
5     #which are only allowed in the 'server config' context.
6     #For a detailed description of all avaiable directives please read
7     #http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives
8
9
10     #WSGISocketPrefix: Configure directory to use for daemon sockets.
11     #
12     #Apache's DEFAULT_REL_RUNTIMEDIR should be the proper place for WSGI's
13     #Socket. In case you want to mess with the permissions of the directory,
14     #you need to define WSGISocketPrefix to an alternative directory.
15     #See http://code.google.com/p/modwsgi/wiki/ConfigurationIssues for more
16     #information
17
18         #WSGISocketPrefix /var/run/apache2/wsgi
19
20     
21     #WSGIPythonOptimize: Enables basic Python optimisation features.
22     #
23     #Sets the level of Python compiler optimisations. The default is '0'
24     #which means no optimisations are applied.
25     #Setting the optimisation level to '1' or above will have the effect
26     #of enabling basic Python optimisations and changes the filename
27     #extension for compiled (bytecode) files from .pyc to .pyo.
28     #When the optimisation level is set to '2', doc strings will not be
29     #generated and retained. This will result in a smaller memory footprint,
30     #but may cause some Python packages which interrogate doc strings in some
31     #way to fail. 
32
33         #WSGIPythonOptimize 0
34
35
36     #WSGIPythonPath: Additional directories to search for Python modules,
37     #                overriding the PYTHONPATH environment variable.
38     #
39     #Used to specify additional directories to search for Python modules.
40     #If multiple directories are specified they should be separated by a ':'.
41
42         #WSGIPythonPath directory|directory-1:directory-2:...
43
44
45     #WSGIPythonEggs: Directory to use for Python eggs cache.
46     #
47     #Used to specify the directory to be used as the Python eggs cache
48     #directory for all sub interpreters created within embedded mode.
49     #This directive achieves the same affect as having set the
50     #PYTHON_EGG_CACHE environment variable.
51     #Note that the directory specified must exist and be writable by the user
52     #that the Apache child processes run as. The directive only applies to
53     #mod_wsgi embedded mode. To set the Python eggs cache directory for
54     #mod_wsgi daemon processes, use the 'python-eggs' option to the
55     #WSGIDaemonProcess directive instead. 
56
57         #WSGIPythonEggs directory
58
59
60
61     #WSGIRestrictEmbedded: Enable restrictions on use of embedded mode.
62     #
63     #The WSGIRestrictEmbedded directive determines whether mod_wsgi embedded
64     #mode is enabled or not. If set to 'On' and the restriction on embedded
65     #mode is therefore enabled, any attempt to make a request against a
66     #WSGI application which hasn't been properly configured so as to be
67     #delegated to a daemon mode process will fail with a HTTP internal server
68     #error response. 
69
70         #WSGIRestrictEmbedded On|Off
71
72
73
74     #WSGIRestrictStdin: Enable restrictions on use of STDIN.
75     #WSGIRestrictStdout: Enable restrictions on use of STDOUT.
76     #WSGIRestrictSignal: Enable restrictions on use of signal().
77     #
78     #Well behaved WSGI applications neither should try to read/write from/to
79     #STDIN/STDOUT, nor should they try to register signal handlers. If your
80     #application needs an exception from this rule, you can disable the
81     #restrictions here.
82
83         #WSGIRestrictStdin On
84         #WSGIRestrictStdout On
85         #WSGIRestrictSignal On
86
87
88
89     #WSGIAcceptMutex: Specify type of accept mutex used by daemon processes.
90     #
91     #The WSGIAcceptMutex directive sets the method that mod_wsgi will use to
92     #serialize multiple daemon processes in a process group accepting requests
93     #on a socket connection from the Apache child processes. If this directive
94     #is not defined then the same type of mutex mechanism as used by Apache for
95     #the main Apache child processes when accepting connections from a client
96     #will be used. If set the method types are the same as for the Apache
97     #AcceptMutex directive.
98
99         #WSGIAcceptMutex default
100
101
102
103     #WSGIImportScript: Specify a script file to be loaded on process start. 
104     #
105     #The WSGIImportScript directive can be used to specify a script file to be
106     #loaded when a process starts. Options must be provided to indicate the
107     #name of the process group and the application group into which the script
108     #will be loaded.
109
110         #WSGIImportScript process-group=name application-group=name
111
112
113     #WSGILazyInitialization: Enable/disable lazy initialisation of Python. 
114     #
115     #The WSGILazyInitialization directives sets whether or not the Python
116     #interpreter is preinitialised within the Apache parent process or whether
117     #lazy initialisation is performed, and the Python interpreter only
118     #initialised in the Apache server processes or mod_wsgi daemon processes
119     #after they have forked from the Apache parent process. 
120
121         #WSGILazyInitialization On|Off
122
123 </IfModule>