Project

General

Profile

Actions

Bug #4608

closed

Incorrect RGW apache conf example

Added by Mark Nelson about 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The example VirtualHost in our RGW quick-start docs didn't work for me. I had to move the rewrite rule into the virtual host section for the rewrite to function properly. Here's my working configuration:

FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock

<VirtualHost *:80>
ServerName {fqdn}
ServerAdmin {email.address}
DocumentRoot /var/www

RewriteEngine On
RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /s3gw.fcgi?page=$1&params=$2&%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
&lt;IfModule mod_fastcgi.c&gt;
&lt;Directory /var/www&gt;
Options +ExecCGI
AllowOverride All
SetHandler fastcgi-script
Order allow,deny
Allow from all
AuthBasicAuthoritative Off
&lt;/Directory&gt;
&lt;/IfModule&gt;
AllowEncodedSlashes On
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
&lt;/VirtualHost&gt;
Actions

Also available in: Atom PDF