summaryrefslogtreecommitdiff
path: root/apache2/conf.d
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-02-22 16:53:32 +0000
committerJonas Smedegaard <dr@jones.dk>2008-02-22 16:53:32 +0000
commit12c3dd93cfd915c38c7c4b9fda2ad9a8bd673dcd (patch)
tree71729bd895e2b0bc9759b1e85053d40d0ba42f85 /apache2/conf.d
parentb4aee7e9069efecfff7016bcdfcc8c776e847e86 (diff)
Add Git config for combined gitweb and http:// pull support.
Diffstat (limited to 'apache2/conf.d')
-rw-r--r--apache2/conf.d/local-git.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/apache2/conf.d/local-git.conf b/apache2/conf.d/local-git.conf
new file mode 100644
index 0000000..04d79bb
--- /dev/null
+++ b/apache2/conf.d/local-git.conf
@@ -0,0 +1,8 @@
+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
+
+RewriteEngine on
+RewriteRule ^/(\?.*)?$ /usr/lib/cgi-bin/gitweb.cgi%{REQUEST_URI} [T=application/x-httpd-cgi,L,NS]