[prev in list] [next in list] [prev in thread] [next in thread]
List: git
Subject: git smart-http do not authent to allow git ls-remote to be called anonymously
From: <ch3cooli () gmail ! com>
Date: 2012-09-30 14:35:35
Message-ID: CAHtLG6Q+XO=LhnKw4hhwtOe2ROeDN1Kg=JN5GTQqdvYjk-Sv4g () mail ! gmail ! com
[Download RAW message or body]
Hi,
I use smart-http on Apache.
If nothing to be pushed / pulled, I do not want password to be
supplied. And allow git ls-remote to run without password
*.git/info/refs?service=git-upload-pack
*.git/info/refs?service=git-receive-pack
I only need authentication on
*.git/git-upload-pack
*.git/git-receive-pack
/etc/apache/httpd.conf
<LocationMatch "^/git/.*/git-(upload|receive)-pack$">
AuthType Basic
AuthName "staff only"
AuthUserFile /etc/apache/apache.pwd
Require valid-user
</LocationMatch>
However this does not work. It does not ask for password at all.
I use Ubuntu 10.04, Apache 2.2.14, Git 1.7.11.3.
Directory structure: any depth (more than 1 subdir) of path from /git
to .git folders
Could you advise how to configure this? Is this a bug?
Regards,
ch3cooli
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic