diff options
-rw-r--r-- | apache2/conf.d/local-git.conf | 27 |
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] |