Cleanup /p/ further and add reminder comments

We remove old git web server env vars from the apache config and add
comments to our /p/ handling to describe the need for further cleanup
when Gerrit is upgraded.

Change-Id: I79fc130dec0a8b00706c0ec0f8fcab4d867e34d1
This commit is contained in:
Clark Boylan 2020-07-31 11:22:00 -07:00
parent 770dbad2dd
commit c96a80d481

View File

@ -55,6 +55,8 @@
ProxyPreserveHost on
ProxyStatus On
# TODO remove this when upgrading to Gerrit 2.16. /p/ is used
# for project dashboards.
ProxyPassMatch ^/p/ !
ProxyPassMatch ^/robots.txt$ !
ProxyPassMatch ^/server-status !
@ -63,9 +65,8 @@
Alias /robots.txt /home/gerrit2/review_site/static/robots.txt
SetEnv GIT_PROJECT_ROOT /opt/lib/git
SetEnv GIT_HTTP_EXPORT_ALL
# TODO remove this when upgrading to Gerrit 2.16. /p/ is used
# for project dashboards.
RewriteRule "^/p/.*" "-" [F,L]
<Directory /home/gerrit2/review_site/git/>