ServerRoot {testdir}/apache
ErrorLog {testdir}/archive/apache/error.log
-LogFormat "%h l %u %t \"%r\" %>s %b \"{Referer}i\" \"%{User-agent}i\"" combined
+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
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]
+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!
for client in config.iterkeys():
(remote,) = ctx.cluster.only(client).remotes.keys()
with file(src, 'rb') as f:
+ conf = f.read().format(testdir=testdir)
teuthology.write_file(
remote=remote,
path='{tdir}/apache/apache.conf'.format(tdir=testdir),
- data=f,
+ data=conf,
)
teuthology.write_file(
remote=remote,