2013-07-10 01:52:26 +00:00
|
|
|
LoadModule env_module {mod_path}/mod_env.so
|
|
|
|
LoadModule rewrite_module {mod_path}/mod_rewrite.so
|
|
|
|
LoadModule fastcgi_module {mod_path}/mod_fastcgi.so
|
|
|
|
LoadModule log_config_module {mod_path}/mod_log_config.so
|
2011-06-22 23:36:58 +00:00
|
|
|
|
|
|
|
Listen 7280
|
|
|
|
ServerName rgwtest.example.com
|
|
|
|
|
2013-01-23 20:37:39 +00:00
|
|
|
ServerRoot {testdir}/apache
|
|
|
|
ErrorLog {testdir}/archive/apache/error.log
|
2013-02-07 06:02:10 +00:00
|
|
|
LogFormat "%h l %u %t \"%r\" %>s %b \"{{Referer}}i\" \"%{{User-agent}}i\"" combined
|
2013-01-23 20:37:39 +00:00
|
|
|
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
|
2011-06-22 23:36:58 +00:00
|
|
|
RewriteEngine On
|
|
|
|
|
2013-02-07 06:02:10 +00:00
|
|
|
RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /rgw.fcgi?page=$1¶ms=$2&%{{QUERY_STRING}} [E=HTTP_AUTHORIZATION:%{{HTTP:Authorization}},L]
|
2011-06-22 23:36:58 +00:00
|
|
|
|
2011-07-06 18:40:25 +00:00
|
|
|
# Set fastcgi environment variables.
|
|
|
|
# Note that this is separate from Unix environment variables!
|
2011-06-22 23:36:58 +00:00
|
|
|
SetEnv RGW_LOG_LEVEL 20
|
2011-07-05 23:48:00 +00:00
|
|
|
SetEnv RGW_SHOULD_LOG yes
|
2013-07-19 21:42:38 +00:00
|
|
|
SetEnv RGW_PRINT_CONTINUE {print_continue}
|
2011-06-22 23:36:58 +00:00
|
|
|
|
2013-01-23 20:37:39 +00:00
|
|
|
<Directory {testdir}/apache/htdocs>
|
2011-06-22 23:36:58 +00:00
|
|
|
Options +ExecCGI
|
|
|
|
AllowOverride All
|
|
|
|
SetHandler fastcgi-script
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
AllowEncodedSlashes On
|
|
|
|
ServerSignature Off
|