Browse Source

Merge "Deny Gerrit /p/ requests"

changes/55/744255/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
1bbfb007cc
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      playbooks/roles/gerrit/templates/gerrit.vhost.j2

+ 1
- 3
playbooks/roles/gerrit/templates/gerrit.vhost.j2 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


Loading…
Cancel
Save