Incremented version to not conflict with precise
[invirt/packages/invirt-web.git] / files / etc / apache2 / sites-available / default.mako
1 <%
2 from invirt.config import structs as cfg
3 hostname = cfg.web.hostname
4 errmail  = cfg.web.errormail
5 tracuri  = cfg.trac.uri
6 %>
7 NameVirtualHost *:80
8 <VirtualHost *:80>
9         ServerAdmin ${errmail}
10         ServerName ${hostname}:80
11         
12         DocumentRoot /var/www/invirt-web
13         <Directory /var/www/invirt-web>
14                 Options Indexes FollowSymLinks MultiViews ExecCGI
15                 AllowOverride None
16                 Order allow,deny
17                 allow from all
18         </Directory>
19
20         RewriteEngine On
21         RewriteRule ^/static(.*) - [L]
22         RewriteRule ^/admin/static(.*) /static/$1 [L]
23         RewriteRule ^/trac(.*) ${tracuri}$1 [R,L]
24         RewriteRule ^/invirt - [L]
25         RewriteRule ^/(git-favicon\.png|git-logo\.png|gitweb\.css|gitweb\.js)$ - [L]
26         RewriteRule ^/gitweb(/.*)?$ - [L]
27         RewriteRule ^/(.*) /var/www/invirt-web/unauth.fcgi/$1 [L]
28
29         ErrorLog /var/log/apache2/error.log
30
31         # Possible values include: debug, info, notice, warn, error, crit,
32         # alert, emerg.
33         LogLevel notice
34
35         CustomLog /var/log/apache2/access.log combined
36         ServerSignature On
37 </VirtualHost>