]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw Apache configuration: simplify rewrite rule
authorFlorian Haas <florian@hastexo.com>
Thu, 28 Jun 2012 07:46:28 +0000 (09:46 +0200)
committerFlorian Haas <florian@hastexo.com>
Thu, 28 Jun 2012 07:46:28 +0000 (09:46 +0200)
Use a simpler RewriteRule as suggested here:
http://marc.info/?l=ceph-devel&m=133951986510085&w=2

doc/ops/radosgw.rst

index 23d9927f1386c59fd2fb21020f21f945f2457c9d..742f58e7b2cc18b748329b948e941547017524a4 100644 (file)
@@ -108,7 +108,7 @@ Then, create a virtual host configuration as follows:
 
     <IfModule mod_rewrite.c>
       RewriteEngine On
-      RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /radosgw.fcgi?page=$1&params=$2&%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
+      RewriteRule  ^/(.*) /radosgw.fcgi?params=$1&%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
     </IfModule>
 
     <IfModule mod_fastcgi.c>