Merge "Deny Gerrit /p/ requests"

This commit is contained in:
Zuul 2020-07-31 19:19:26 +00:00 committed by Gerrit Code Review
commit 1bbfb007cc

View File

@ -66,9 +66,7 @@
SetEnv GIT_PROJECT_ROOT /opt/lib/git
SetEnv GIT_HTTP_EXPORT_ALL
AliasMatch ^/p/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /opt/lib/git/$1
AliasMatch ^/p/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /opt/lib/git/$1
ScriptAlias /p/ /usr/lib/git-core/git-http-backend/
RewriteRule "^/p/.*" "-" [F,L]
<Directory /home/gerrit2/review_site/git/>
Require all granted