Initial commit
This commit is contained in:
29
files/httpd-gitweb.conf
Normal file
29
files/httpd-gitweb.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
LoadModule rewrite_module modules/mod_rewrite.so
|
||||
LoadModule cgi_module modules/mod_cgi.so
|
||||
|
||||
SetEnv GIT_PROJECT_ROOT /usr/local/apache2/htdocs/archive/Repositories/git
|
||||
SetEnv GIT_HTTP_EXPORT_ALL
|
||||
ScriptAliasMatch \
|
||||
"(?x)^/git/(.*/(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 /archive/Repositories/git/ /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>
|
||||
Reference in New Issue
Block a user