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
10 #WSGISocketPrefix: Configure directory to use for daemon sockets.
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
18 #WSGISocketPrefix /var/run/apache2/wsgi
21 #WSGIPythonOptimize: Enables basic Python optimisation features.
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
36 #WSGIPythonPath: Additional directories to search for Python modules,
37 # overriding the PYTHONPATH environment variable.
39 #Used to specify additional directories to search for Python modules.
40 #If multiple directories are specified they should be separated by a ':'.
42 #WSGIPythonPath directory|directory-1:directory-2:...
45 #WSGIPythonEggs: Directory to use for Python eggs cache.
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.
57 #WSGIPythonEggs directory
61 #WSGIRestrictEmbedded: Enable restrictions on use of embedded mode.
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
70 #WSGIRestrictEmbedded On|Off
74 #WSGIRestrictStdin: Enable restrictions on use of STDIN.
75 #WSGIRestrictStdout: Enable restrictions on use of STDOUT.
76 #WSGIRestrictSignal: Enable restrictions on use of signal().
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
84 #WSGIRestrictStdout On
85 #WSGIRestrictSignal On
89 #WSGIAcceptMutex: Specify type of accept mutex used by daemon processes.
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.
99 #WSGIAcceptMutex default
103 #WSGIImportScript: Specify a script file to be loaded on process start.
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
110 #WSGIImportScript process-group=name application-group=name
113 #WSGILazyInitialization: Enable/disable lazy initialisation of Python.
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.
121 #WSGILazyInitialization On|Off