2014-08-16 22:31:46 +00:00
|
|
|
<IfModule !version_module>
|
|
|
|
LoadModule version_module {mod_path}/mod_version.so
|
|
|
|
</IfModule>
|
2013-07-20 18:30:24 +00:00
|
|
|
<IfModule !env_module>
|
|
|
|
LoadModule env_module {mod_path}/mod_env.so
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !rewrite_module>
|
|
|
|
LoadModule rewrite_module {mod_path}/mod_rewrite.so
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !fastcgi_module>
|
|
|
|
LoadModule fastcgi_module {mod_path}/mod_fastcgi.so
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !log_config_module>
|
|
|
|
LoadModule log_config_module {mod_path}/mod_log_config.so
|
|
|
|
</IfModule>
|
2011-06-22 23:36:58 +00:00
|
|
|
|
2013-07-22 17:38:28 +00:00
|
|
|
Listen {port}
|
|
|
|
ServerName {host}
|
2011-06-22 23:36:58 +00:00
|
|
|
|
2014-08-16 04:02:15 +00:00
|
|
|
<IfVersion >= 2.4>
|
2014-08-16 22:31:46 +00:00
|
|
|
<IfModule !unixd_module>
|
|
|
|
LoadModule unixd_module {mod_path}/mod_unixd.so
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !authz_core_module>
|
|
|
|
LoadModule authz_core_module {mod_path}/mod_authz_core.so
|
|
|
|
</IfModule>
|
2014-08-16 04:02:15 +00:00
|
|
|
User {user}
|
|
|
|
Group {group}
|
|
|
|
{apache24_modconfig}
|
|
|
|
</IfVersion>
|
|
|
|
|
2013-01-23 20:37:39 +00:00
|
|
|
ServerRoot {testdir}/apache
|
2013-07-22 17:38:28 +00:00
|
|
|
ErrorLog {testdir}/archive/apache.{client}/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-07-22 17:38:28 +00:00
|
|
|
CustomLog {testdir}/archive/apache.{client}/access.log combined
|
|
|
|
PidFile {testdir}/apache/tmp.{client}/apache.pid
|
|
|
|
DocumentRoot {testdir}/apache/htdocs.{client}
|
|
|
|
FastCgiIPCDir {testdir}/apache/tmp.{client}/fastcgi_sock
|
2014-03-26 23:06:29 +00:00
|
|
|
FastCgiExternalServer {testdir}/apache/htdocs.{client}/rgw.fcgi -socket rgw_sock -idle-timeout {idle_timeout}
|
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-07-22 17:38:28 +00:00
|
|
|
<Directory {testdir}/apache/htdocs.{client}>
|
2011-06-22 23:36:58 +00:00
|
|
|
Options +ExecCGI
|
|
|
|
AllowOverride All
|
|
|
|
SetHandler fastcgi-script
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
AllowEncodedSlashes On
|
|
|
|
ServerSignature Off
|