9b357c31fb
and make it redirect to the elastic-recheck page for niceness to users using the old link. Change-Id: I900418ae152c5568c7418237aa0e30e2b1efdd78
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
<VirtualHost <%= scope.lookupvar("::zuul::vhost_name") %>:80>
|
|
ServerAdmin <%= scope.lookupvar("::zuul::serveradmin") %>
|
|
DocumentRoot /var/lib/zuul/www
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::zuul::vhost_name") %>-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::zuul::vhost_name") %>-access.log combined
|
|
|
|
RewriteEngine on
|
|
RewriteRule ^/status.json$ http://127.0.0.1:8001/status.json [P]
|
|
|
|
AddOutputFilterByType DEFLATE application/json
|
|
|
|
SetEnv GIT_PROJECT_ROOT /var/lib/zuul/git/
|
|
SetEnv GIT_HTTP_EXPORT_ALL
|
|
|
|
AliasMatch ^/p/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/lib/zuul/git/$1
|
|
AliasMatch ^/p/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/lib/zuul/git/$1
|
|
ScriptAlias /p/ /usr/lib/git-core/git-http-backend/
|
|
|
|
<IfModule mod_cache.c>
|
|
CacheDefaultExpire 5
|
|
<IfModule mod_mem_cache.c>
|
|
CacheEnable mem /status.json
|
|
# 12MByte total cache size.
|
|
MCacheSize 12288
|
|
MCacheMaxObjectCount 10
|
|
MCacheMinObjectSize 1
|
|
# 8MByte max size per cache entry
|
|
MCacheMaxObjectSize 8388608
|
|
MCacheMaxStreamingBuffer 8388608
|
|
</IfModule>
|
|
</IfModule>
|
|
|
|
</VirtualHost>
|