]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Distro specific rgw.conf example.
authorJohn Wilkins <john.wilkins@inktank.com>
Mon, 14 Apr 2014 16:19:30 +0000 (09:19 -0700)
committerJohn Wilkins <john.wilkins@inktank.com>
Mon, 14 Apr 2014 16:19:30 +0000 (09:19 -0700)
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc/radosgw/rgw-centos.conf [new file with mode: 0644]

diff --git a/doc/radosgw/rgw-centos.conf b/doc/radosgw/rgw-centos.conf
new file mode 100644 (file)
index 0000000..7e0f23f
--- /dev/null
@@ -0,0 +1,30 @@
+FastCgiExternalServer /var/www/html/s3gw.fcgi -socket /var/run/ceph/client.radosgw.gateway.asok
+
+
+<VirtualHost *:80>
+
+       ServerName {fqdn}
+       <!--Remove the comment. Add a server alias with *.{fqdn} for S3 subdomains-->
+       <!--ServerAlias *.{fqdn}-->
+       ServerAdmin {email.address}
+       DocumentRoot /var/www/html
+       RewriteEngine On
+       RewriteRule  ^/(.*) /s3gw.fcgi?%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
+
+       <IfModule mod_fastcgi.c>
+       <Directory /var/www/html>
+                       Options +ExecCGI
+                       AllowOverride All
+                       SetHandler fastcgi-script
+                       Order allow,deny
+                       Allow from all
+                       AuthBasicAuthoritative Off
+               </Directory>
+       </IfModule>
+
+       AllowEncodedSlashes On
+       ErrorLog /var/log/httpd/error.log
+       CustomLog /var/log/httpd/access.log combined
+       ServerSignature Off
+
+</VirtualHost>
\ No newline at end of file