26 lines
659 B
Text
26 lines
659 B
Text
# git clone http support
|
|
SetEnv GIT_PROJECT_ROOT /srv/git
|
|
SetEnv GIT_HTTP_EXPORT_ALL
|
|
|
|
# gitweb settings
|
|
SetEnv GITWEB_PROJECTROOT /srv/git
|
|
|
|
Alias /static/ /var/www/git/static/
|
|
|
|
#AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /srv/git/$1
|
|
#AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /srv/git/$1
|
|
|
|
<Directory /usr/libexec/git-core>
|
|
Require all granted
|
|
</Directory>
|
|
ScriptAliasMatch \
|
|
"(?x)^/(.*/(HEAD | \
|
|
info/refs | \
|
|
objects/info/[^/]+ | \
|
|
git-(upload|receive)-pack))$" \
|
|
/usr/libexec/git-core/git-http-backend/$1
|
|
|
|
ScriptAlias /gitweb.cgi /var/www/git/gitweb.cgi
|
|
<Location />
|
|
DirectoryIndex gitweb.cgi
|
|
</Location>
|