]> git.openstreetmap.org Git - chef.git/blob - cookbooks/git/templates/default/apache.erb
Add a load more cookbooks
[chef.git] / cookbooks / git / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName <%= @name %>
5
6         CustomLog /var/log/apache2/<%= @name %>-access.log combined
7         ErrorLog /var/log/apache2/<%= @name %>-error.log
8
9         DocumentRoot <%= @directory %>
10         HeaderName HEADER
11         Alias /gitweb /usr/share/gitweb
12         Alias /git /var/cache/git
13         ScriptAlias /gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
14
15         RewriteEngine On
16         RewriteRule ^/$ /gitweb.cgi%{REQUEST_URI} [L,PT]
17         RewriteRule ^/(.*\.git/(?!/?(HEAD|info|objects|refs)).*)?$ /gitweb.cgi%{REQUEST_URI} [L,PT]
18 </VirtualHost>