30 lines
729 B
Plaintext
30 lines
729 B
Plaintext
LoadModule rewrite_module modules/mod_rewrite.so
|
|
LoadModule cgi_module modules/mod_cgi.so
|
|
|
|
SetEnv GIT_PROJECT_ROOT /usr/local/apache2/htdocs
|
|
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))$" \
|
|
/usr/lib/git-core/git-http-backend/$1
|
|
|
|
ScriptAlias / /usr/lib/cgi-bin/gitweb.cgi/
|
|
|
|
<Directory "/usr/lib/git-core">
|
|
Options +ExecCGI +Indexes
|
|
Order allow,deny
|
|
Allow from all
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<Directory "/usr/lib/cgi-bin">
|
|
Options +ExecCGI +Indexes
|
|
Order allow,deny
|
|
Allow from all
|
|
Require all granted
|
|
</Directory>
|