KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am in the process of setting up a Git server (1.7.2.3) on a WS 2008 machine using Apache and git-http-backend.exe. I have been following a good tut here . I have the GUI working, I can annoymously clone and if I put the following in the config of a repo I can annoymously push: [http] receivepack = true I have added the following to the httpd.conf file: SetEnv GIT_PROJECT_ROOT C:/GIT/Repositories SetEnv GIT_HTTP_EXPORT_ALL ScriptAliasMatch \ "(?x)^/(.*/(HEAD | \ info/refs | \ objects/(info/[^/]+ | \ [0-9a-f]{2}/[0-9a-f]{38} | \ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ git-(upload|receive)-pack))$" \ "C:/Program Files (x86)/git/libexec/git-core/git-http-backend.exe/$1" <Directory /> Allow from all </Directory> <LocationMatch "^/git/.*/git-receive-pack$"> AuthType Basic AuthName "Git Access" AuthUserFile C:/GIT/ApacheConfig/users AuthGroupFile C:/GIT/ApacheConfig/groups Require group repogeneral </LocationMatch> When I add the "LocationMatch" I can still clone annoymously or by specifying a name in the URL, git clone http://jon@myserver.com It will prompt for a password and clone. but when I try to push back to the repo I get the following: error: Cannot access URL http://jon@myserver.com/newtestrepo.git/ , return code 22 fatal: git-http-push failed I have been looking at the http-backend.exe man page for examples b
Tags (comma-separated)
Save Edits
Cancel