Add example maintenance message for Gerrit server
Include comments in the Gerrit vhost config template to make setting a temporary site-wide maintenance message easier. Change-Id: I81f69185e081b2a6506d5355bb07a90cb3e03fea
This commit is contained in:
parent
c16501af8a
commit
0f3ef01027
@ -55,11 +55,18 @@
|
||||
ProxyPreserveHost on
|
||||
ProxyStatus On
|
||||
|
||||
# Uncomment to show a temporary maintenance message
|
||||
#ProxyPassMatch ^/maintenance.html$ !
|
||||
#Alias /maintenance.html /home/gerrit2/review_site/static/maintenance.html
|
||||
#RewriteCond %{REQUEST_URI} !^/maintenance.html$
|
||||
#RewriteRule ^/(.*) /maintenance.html [last,redirect=temporary]
|
||||
|
||||
# TODO remove this when upgrading to Gerrit 2.16. /p/ is used
|
||||
# for project dashboards.
|
||||
ProxyPassMatch ^/p/ !
|
||||
ProxyPassMatch ^/robots.txt$ !
|
||||
ProxyPassMatch ^/server-status !
|
||||
# Comment out these two lines if the maintenance message above is in use
|
||||
ProxyPass / http://localhost:8081/ nocanon
|
||||
ProxyPassReverse / http://localhost:8081/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user