mirror of
https://github.com/ceph/ceph
synced 2024-12-14 23:46:28 +00:00
ed9103aad5
Also fix up the template to use {{field}} for stuff we don't want to parse. There is probably a better way... Signed-off-by: Sage Weil <sage@inktank.com>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
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 {testdir}/apache
|
|
ErrorLog {testdir}/archive/apache/error.log
|
|
LogFormat "%h l %u %t \"%r\" %>s %b \"{{Referer}}i\" \"%{{User-agent}}i\"" combined
|
|
CustomLog {testdir}/archive/apache/access.log combined
|
|
PidFile {testdir}/apache/tmp/apache.pid
|
|
DocumentRoot {testdir}/apache/htdocs
|
|
FastCgiIPCDir {testdir}/apache/tmp/fastcgi_sock
|
|
FastCgiExternalServer {testdir}/apache/htdocs/rgw.fcgi -socket rgw_sock
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /rgw.fcgi?page=$1¶ms=$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 {testdir}/apache/htdocs>
|
|
Options +ExecCGI
|
|
AllowOverride All
|
|
SetHandler fastcgi-script
|
|
</Directory>
|
|
|
|
AllowEncodedSlashes On
|
|
ServerSignature Off
|