da78035043
This is a common configuration option and allows devstack (and others) to configure a mod_wsgi user to run the daemon process. Change-Id: Idf134b3bc6b08e3c3a80dde8830d5a4f3da5a06c Fixes: bug 1226346
26 lines
855 B
Plaintext
26 lines
855 B
Plaintext
# Object Server VHOST Template For Apache2
|
|
#
|
|
# Change %PORT% to the port that you wish to use on your system
|
|
# Change %SERVICENAME% to the service name you are using
|
|
# Change %USER% to the system user that will run the daemon process
|
|
# Change the debug level as you see fit
|
|
#
|
|
# For example:
|
|
# Replace %PORT% by 6010
|
|
# Replace %SERVICENAME% by object-server-1
|
|
# Replace %USER% with apache (or remove it for default)
|
|
|
|
NameVirtualHost *:%PORT%
|
|
Listen %PORT%
|
|
|
|
<VirtualHost *:%PORT%>
|
|
WSGIDaemonProcess %SERVICENAME% processes=5 threads=1 user=%USER%
|
|
WSGIProcessGroup %SERVICENAME%
|
|
WSGIScriptAlias / /var/www/swift/%SERVICENAME%.wsgi
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
LimitRequestFields 200
|
|
ErrorLog /var/log/%APACHE_NAME%/%SERVICENAME%
|
|
LogLevel debug
|
|
CustomLog /var/log/%APACHE_NAME%/access.log combined
|
|
</VirtualHost>
|