2014-03-06 20:54:37 +08:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2015-03-02 17:48:18 +08:00
|
|
|
FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw-{{ ansible_hostname }}.sock
|
2014-03-06 20:54:37 +08:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName {{ ansible_hostname }}
|
|
|
|
ServerAdmin {{ email_address }}@{{ ansible_fqdn }}
|
|
|
|
DocumentRoot /var/www
|
|
|
|
|
|
|
|
<IfModule mod_fastcgi.c>
|
|
|
|
<Directory /var/www>
|
|
|
|
Options +ExecCGI
|
|
|
|
AllowOverride All
|
|
|
|
SetHandler fastcgi-script
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
AuthBasicAuthoritative Off
|
|
|
|
</Directory>
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /s3gw.fcgi?page=$1¶ms=$2&%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
|
|
|
|
|
|
|
</VirtualHost>
|