diff options
author | Prashanth Pai <ppai@redhat.com> | 2013-10-21 15:05:33 +0530 |
---|---|---|
committer | Luis Pabon <lpabon@redhat.com> | 2013-10-23 18:54:17 -0700 |
commit | ade571006d145b0ade2094a1840b67927a18d6d5 (patch) | |
tree | fe05a1bbf7a4f6d12d4ab076a1414bc3769c0d32 /extras/apache-deploy/conf/swift_wsgi.conf | |
parent | 11e2be75faa5af4f5c724c61447559693cd05b7f (diff) |
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>
Diffstat (limited to 'extras/apache-deploy/conf/swift_wsgi.conf')
-rw-r--r-- | extras/apache-deploy/conf/swift_wsgi.conf | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/extras/apache-deploy/conf/swift_wsgi.conf b/extras/apache-deploy/conf/swift_wsgi.conf new file mode 100644 index 0000000..16e8169 --- /dev/null +++ b/extras/apache-deploy/conf/swift_wsgi.conf @@ -0,0 +1,54 @@ +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> |