system-config/modules/zuul/templates/zuul.vhost.erb
James E. Blair 35b8274533 Move zuul status to static.o.o.
And update the status page to use common.js.
Redirect old zuul status urls to status.o.o.

Change-Id: I98e86eb78b70d5cbe53410919642f302e9709d19
Reviewed-on: https://review.openstack.org/25664
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-03-29 20:49:54 +00:00

26 lines
976 B
Plaintext

<VirtualHost <%= scope.lookupvar("::zuul::vhost_name") %>:80>
ServerAdmin <%= scope.lookupvar("::zuul::serveradmin") %>
DocumentRoot /var/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 ^/$ http://status.openstack.org/zuul/ [R]
RewriteRule ^/zuul/status$ http://status.openstack.org/zuul/ [R]
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>