I've been trying to set up git-http-backend+lighttpd.  I've managed to
set up anonymous read-only access, and I then successfully configured
authentication for both read and write.  Then I get stuck.  The
man-page for git-http-backend says that the following snippet can be
used for Apache 2.x:

    <LocationMatch "^/git/.*/git-receive-pack$">
        AuthType Basic
        AuthName "Git Access"
        Require group committers
        ...
    </LocationMatch>

However, when I put in this match on location in my lighty config and
try to push I'm not asked for a password, instead I'm greeted with the
same message as when I'm trying to push without authentication at all:

    % git push
    error: The requested URL returned error: 403 Forbidden while
accessing 
http://magnus@tracsrv.local/git/foo.git/info/refs?service=git-receive-pack

AFAICS this means the man-page is wrong, and that I instead ought to
match on the "service=git-receive-pack" part.  Is that conclusion
correct?  (I've not managed to find anything online indicating that
I'm correct.)

Are there additional locations that are involved when pushing?

I have tried to configure lighty to match on
"service=git-receive-pack", but then pushing doesn't succeed either.
With this type of configuration I'm walking into the unknown on two
fronts, lighty configuration and git, so with this email I'm hoping to
eliminate one of the unknowns.  Thanks in advance for any and all
help.

/M

--
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to