ceph/teuthology/task/apache.conf
2011-07-06 11:40:25 -07:00

35 lines
1.2 KiB
ApacheConf

LoadModule env_module /usr/lib/apache2/modules/mod_env.so
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so
Listen 7280
ServerName rgwtest.example.com
ServerRoot /tmp/cephtest/apache
ErrorLog /tmp/cephtest/archive/apache/error.log
LogFormat "%h l %u %t \"%r\" %>s %b \"{Referer}i\" \"%{User-agent}i\"" combined
CustomLog /tmp/cephtest/archive/apache/access.log combined
PidFile /tmp/cephtest/apache/tmp/apache.pid
DocumentRoot /tmp/cephtest/apache/htdocs
FastCgiIPCDir /tmp/cephtest/apache/tmp/fastcgi_sock
FastCgiWrapper /tmp/cephtest/apache/htdocs/rgw.fcgi
FastCgiServer /tmp/cephtest/binary/usr/local/bin/radosgw -user ubuntu -group ubuntu
RewriteEngine On
RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /rgw.fcgi?page=$1&params=$2&%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# Set fastcgi environment variables.
# Note that this is separate from Unix environment variables!
SetEnv RGW_LOG_LEVEL 20
SetEnv RGW_PRINT_CONTINUE yes
SetEnv RGW_SHOULD_LOG yes
<Directory /tmp/cephtest/apache/htdocs>
Options +ExecCGI
AllowOverride All
SetHandler fastcgi-script
</Directory>
AllowEncodedSlashes On
ServerSignature Off