e872e54c2a
This patch is needed in 1.9 as a dependency for adding swift/apache to devstack. zhang-hare is working in parallel on a devstack patch that depend on this patch. As part of this patch we add examples dir. In this dir we add template config files that can be used either by a script (as will be done by devstack) or serve a an example to the admin. Apache2 vhost files were added under examples/apache2 Wsgi files were added under examples/wsgi Fixes: Bug #1191388 Change-Id: If90e38a0ba36f6b59016d4a1374f4100f0bbee7b
24 lines
721 B
Plaintext
24 lines
721 B
Plaintext
# Container 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 the debug level as you see fit
|
|
#
|
|
# For example:
|
|
# Replace %PORT% by 6011
|
|
# Replace %SERVICENAME% by container-server-1
|
|
|
|
NameVirtualHost *:%PORT%
|
|
Listen %PORT%
|
|
|
|
<VirtualHost *:%PORT%>
|
|
WSGIDaemonProcess %SERVICENAME% processes=5 threads=1
|
|
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>
|