2013-06-20 13:21:47 +03:00
|
|
|
# Proxy 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
|
2013-09-17 11:46:04 +10:00
|
|
|
# Change %USER% to the system user that will run the daemon process
|
2013-06-20 13:21:47 +03:00
|
|
|
# Change the debug level as you see fit
|
|
|
|
#
|
|
|
|
# For example:
|
|
|
|
# Replace %PORT% by 8080
|
|
|
|
# Replace %SERVICENAME% by proxy-server
|
2013-09-17 11:46:04 +10:00
|
|
|
# Replace %USER% with apache (or remove it for default)
|
2013-06-20 13:21:47 +03:00
|
|
|
|
|
|
|
NameVirtualHost *:%PORT%
|
|
|
|
Listen %PORT%
|
|
|
|
|
|
|
|
<VirtualHost *:%PORT%>
|
|
|
|
# The limit of an object size
|
|
|
|
LimitRequestBody 5368709122
|
2013-09-17 11:46:04 +10:00
|
|
|
WSGIDaemonProcess %SERVICENAME% processes=5 threads=1 user=%USER%
|
2013-06-20 13:21:47 +03:00
|
|
|
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>
|