Prashanth Pai ade571006d Deploy Apache as web front-end for gluster-swift
Swift can alternatively be configured to work as a request processor of
Apache server. This alternative deployment scenario uses mod_wsgi of
Apache to forward requests to the swift wsgi application and middleware.

'client' <---> 'Apache2+mod_wsgi' <---> 'middleware' <---> 'core swift'

Change-Id: If396dcbdf651af0dce55b951cd2eaadc6783384f
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Reviewed-on: http://review.gluster.org/6116
Reviewed-by: Luis Pabon <lpabon@redhat.com>
Tested-by: Luis Pabon <lpabon@redhat.com>
2013-10-23 18:54:17 -07:00

55 lines
1.6 KiB
Plaintext

WSGISocketPrefix /var/run/wsgi
#Proxy Service
Listen 8080
<VirtualHost *:8080>
ServerName proxy-server
LimitRequestBody 5368709122
WSGIDaemonProcess proxy-server processes=5 threads=1 user=swift
WSGIProcessGroup proxy-server
WSGIScriptAlias / /var/www/swift/proxy-server.wsgi
LimitRequestFields 200
ErrorLog /var/log/httpd/proxy-server.log
LogLevel debug
CustomLog /var/log/httpd/proxy.log combined
</VirtualHost>
#Object Service
Listen 6010
<VirtualHost *:6010>
ServerName object-server
WSGIDaemonProcess object-server processes=5 threads=1 user=swift
WSGIProcessGroup object-server
WSGIScriptAlias / /var/www/swift/object-server.wsgi
LimitRequestFields 200
ErrorLog /var/log/httpd/object-server.log
LogLevel debug
CustomLog /var/log/httpd/access.log combined
</VirtualHost>
#Container Service
Listen 6011
<VirtualHost *:6011>
ServerName container-server
WSGIDaemonProcess container-server processes=5 threads=1 user=swift
WSGIProcessGroup container-server
WSGIScriptAlias / /var/www/swift/container-server.wsgi
LimitRequestFields 200
ErrorLog /var/log/httpd/container-server.log
LogLevel debug
CustomLog /var/log/httpd/access.log combined
</VirtualHost>
#Account Service
Listen 6012
<VirtualHost *:6012>
ServerName account-server
WSGIDaemonProcess account-server processes=5 threads=1 user=swift
WSGIProcessGroup account-server
WSGIScriptAlias / /var/www/swift/account-server.wsgi
LimitRequestFields 200
ErrorLog /var/log/httpd/account-server.log
LogLevel debug
CustomLog /var/log/httpd/access.log combined
</VirtualHost>