What are the steps to setup git-http-backend w/ Apache on Windows?

Posted by Jordan on Server Fault See other posts from Server Fault or by Jordan
Published on 2010-03-14T03:26:45Z Indexed on 2010/03/14 3:35 UTC
Read the original article Hit count: 783

Filed under:
|
|
|
|

I would like setup a Git server using the "Smart-HTTP" approach. However, I'm having difficulties getting it to work in Windows, and I'm new to Apache. My httpd.conf, in part:

SetEnv GIT_PROJECT_ROOT "d:/repositories"
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ "C:/Program Files/Git/libexec/git-core/git-http-backend.exe"

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

Could someone provide the steps to setup a Git server using git-http-backend on Windows?

© Server Fault or respective owner

Related posts about git

Related posts about http