mirror of
https://github.com/ceph/ceph
synced 2024-12-24 12:24:19 +00:00
8ad065dc9c
Take client<->zone/region and the associated pools from ceph.conf, so we don't have to invent a new format to specify it. General region info is added to a new configuration section in the rgw task. Each client is assumed to be a different zone, and a system user is created with the key specified in the yaml, so it can be passed to later task configuration as well. This isn't strictly necessary, but avoids having to lookup this info in later tasks through something like radosgw-admin. Ports are allocated automatically because there's no obvious mapping from host to client in the task configuration. Later tests can get the endpoints desired by reading the region map. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
<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>
|
|
|
|
Listen {port}
|
|
ServerName {host}
|
|
|
|
ServerRoot {testdir}/apache
|
|
ErrorLog {testdir}/archive/apache.{client}/error.log
|
|
LogFormat "%h l %u %t \"%r\" %>s %b \"{{Referer}}i\" \"%{{User-agent}}i\"" combined
|
|
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
|
|
FastCgiExternalServer {testdir}/apache/htdocs.{client}/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_SHOULD_LOG yes
|
|
SetEnv RGW_PRINT_CONTINUE {print_continue}
|
|
|
|
<Directory {testdir}/apache/htdocs.{client}>
|
|
Options +ExecCGI
|
|
AllowOverride All
|
|
SetHandler fastcgi-script
|
|
</Directory>
|
|
|
|
AllowEncodedSlashes On
|
|
ServerSignature Off
|