From b861b40a104dbbfa32f45d143ab833343ec0c204 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Sep 2008 13:25:51 +0200 Subject: Update apache2 git snippet for Lenny gitweb and Apache2. --- apache2/conf.d/local-git.conf | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'apache2') 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 + + Options FollowSymLinks + AllowOverride None + Order allow,deny + allow from all + + + + Options ExecCgi + AllowOverride None + Order allow,deny + allow from all + + +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 + + + Options None + AllowOverride None + Order allow,deny + allow from all + RewriteEngine on RewriteRule ^/(\?.*)?$ /usr/lib/cgi-bin/gitweb.cgi%{REQUEST_URI} [T=application/x-httpd-cgi,L,NS] -- cgit v1.2.3