…..
LoadModule auth_digest_module modules/mod_auth_digest.so
…..
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
…..

# GIT Configuration
SetEnv GIT_PROJECT_ROOT D:/GIT_Repositories
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
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))$” \
“D:/Program Files (x86)/git/libexec/git-core/git-http-backend.exe/$1”

<LocationMatch “^/.*/git-receive-pack$”>
Options +ExecCGI
AuthType Basic
AuthName lhsieh
AuthUserFile “D:\Program Files (x86)\Git\ApacheConfig\users”
Require valid-user
</LocationMatch>

<LocationMatch “^/.*/git-upload-pack$”>
Options +ExecCGI
AuthType Basic
AuthName lhsieh
AuthUserFile “D:\Program Files (x86)\Git\ApacheConfig\users”
Require valid-user
</LocationMatch>

<Directory “D:/GIT_Repositories”>
Allow from all
Dav On
</Directory>


Advertisements