On Mon, Dec 03, 2012 at 05:51:51AM -0800, Philipp Kraus wrote:

> I have run some bare repos with http & https on Apache and get this errors:
> "GET /git/Simulation.git/info/refs?service=git-upload-pack HTTP/1.1" 200 
> 2878 "-" "git/1.8.0"                                                       
>                       
> "POST /git/Simulation.git/git-upload-pack HTTP/1.1" 401 901 "-" "git/1.8.0" 
[...]
> ScriptAliasMatch \                                                         
>         "(?x)^/git/(.*/(HEAD | \                                           
[...]
>                         git-(upload|receive)-pack))$" \                     
>         /usr/lib/git-core/git-http-backend/$1 
> 
> Only the clone option does not work, push / pull works fine with 
> authentification. Does anybody know how I can solve this problem?

Your ScriptAliasMatch directive seems to match the URL mentioned in
the failing POST request, hence I, personally, can only suspect a
problem with configuration for the authentication, which you did not
include in your message.

git-{upload|receive}-pack do not do any authentication themselves, they
just look at the REMOTE_USER environment variable which is supplied by
the web server, and contains the identity of the authenticated user.
So the problem should (supposedly) root in the web server configuration.

-- 


Reply via email to