[RFC PATCH v4 20/26] http-backend: more explict LocationMatch
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Oct 29, 2009, 00:00 UTC
- Message-ID
- <1256774448-7625-21-git-send-email-spearce@spearce.org>
- In-Reply-To
- <1256774448-7625-1-git-send-email-spearce@spearce.org>
From: Mark Lodato <lodatom@gmail.com>
In the git-http-backend examples, only match git-receive-pack within /git/.
Signed-off-by: Mark Lodato <lodatom@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org> --- Documentation/git-http-backend.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-http-backend.txt b/Documentation/git-http-backend.txt index 2989c9f..f17251a 100644 --- a/Documentation/git-http-backend.txt +++ b/Documentation/git-http-backend.txt @@ -69,7 +69,7 @@ To enable anonymous read access but authenticated write access, require authorization with a LocationMatch directive: + ---------------------------------------------------------------- -<LocationMatch ".*/git-receive-pack$"> +<LocationMatch "^/git/.*/git-receive-pack$"> AuthType Basic AuthName "Git Access" Require group committers
-- 1.6.5.2.181.gd6f41