396cfb1bd4
Since .html extensions are uncool. Change-Id: I66ed8b6c43e7917d793ec372fac755e02b207c63 Reviewed-on: https://review.openstack.org/18552 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
25 lines
924 B
Plaintext
25 lines
924 B
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 ^/zuul/status$ http://127.0.0.1:8001/status [P]
|
|
RewriteRule ^/status.json$ http://127.0.0.1:8001/status.json [P]
|
|
|
|
Alias /rechecks.html /var/www/recheckwatch/rechecks.html
|
|
Alias /rechecks /var/www/recheckwatch/rechecks.html
|
|
|
|
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/
|
|
</VirtualHost>
|