summaryrefslogtreecommitdiff
path: root/apache2/conf.d
diff options
context:
space:
mode:
authorroot <root@borneuni.dk>2008-09-22 13:25:51 +0200
committerroot <root@borneuni.dk>2008-09-22 13:25:51 +0200
commitb861b40a104dbbfa32f45d143ab833343ec0c204 (patch)
treeeb05159f9f5f42750ac7ef461b6a6a19e76ddfa6 /apache2/conf.d
parent1ffcbc50480912d52d73e02507ca416c5fac1e2c (diff)
Update apache2 git snippet for Lenny gitweb and Apache2.
Diffstat (limited to 'apache2/conf.d')
-rw-r--r--apache2/conf.d/local-git.conf27
1 files changed, 24 insertions, 3 deletions
diff --git a/apache2/conf.d/local-git.conf b/apache2/conf.d/local-git.conf
index 04d79bb..2140bc2 100644
--- a/apache2/conf.d/local-git.conf
+++ b/apache2/conf.d/local-git.conf
@@ -1,8 +1,29 @@
AddDefaultCharset UTF-8
-Alias /gitweb.css /var/www/gitweb.css
-Alias /git-favicon.png /var/www/git-favicon.png
-Alias /git-logo.png /var/www/git-logo.png
+<Directory /srv/git>
+ Options FollowSymLinks
+ AllowOverride None
+ Order allow,deny
+ allow from all
+</Directory>
+
+<Directory /usr/lib/cgi-bin>
+ Options ExecCgi
+ AllowOverride None
+ Order allow,deny
+ allow from all
+</Directory>
+
+Alias /gitweb.css /usr/share/gitweb/gitweb.css
+Alias /git-favicon.png /usr/share/gitweb/git-favicon.png
+Alias /git-logo.png /usr/share/gitweb/git-logo.png
+
+<Directory /usr/share/gitweb>
+ Options None
+ AllowOverride None
+ Order allow,deny
+ allow from all
+</Directory>
RewriteEngine on
RewriteRule ^/(\?.*)?$ /usr/lib/cgi-bin/gitweb.cgi%{REQUEST_URI} [T=application/x-httpd-cgi,L,NS]