1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
6 CustomLog /var/log/apache2/<%= @name %>-access.log combined
7 ErrorLog /var/log/apache2/<%= @name %>-error.log
9 DocumentRoot <%= @directory %>
11 Alias /gitweb /usr/share/gitweb
12 Alias /git /var/cache/git
13 ScriptAlias /gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
16 RewriteRule ^/$ /gitweb.cgi%{REQUEST_URI} [L,PT]
17 RewriteRule ^/(.*\.git/(?!/?(HEAD|info|objects|refs)).*)?$ /gitweb.cgi%{REQUEST_URI} [L,PT]