source: package_branches/invirt-web/hvirt/files/etc/apache2/conf.invirt/default.mako @ 2922

Last change on this file since 2922 was 2922, checked in by gdb, 15 years ago

Updated mako templates

File size: 966 bytes
Line 
1<%page args="cfg, invirt_ssl" />
2
3NameVirtualHost *:80
4<VirtualHost *:80>
5        ServerAdmin ${cfg.web.errormail}
6        ServerName ${cfg.web.hostname}:80
7       
8        DocumentRoot /var/www/invirt-web
9        <Directory /var/www/invirt-web>
10                Options Indexes FollowSymLinks MultiViews ExecCGI
11                AllowOverride None
12                Order allow,deny
13                allow from all
14        </Directory>
15
16        RewriteEngine On
17        RewriteRule ^/static(.*) - [L]
18        RewriteRule ^/admin/static(.*) /static/$1 [L]
19% for rewrite in cfg.web.sites.default.rewriterules:
20        RewriteRule ^/${rewrite.rule} ${rewrite.target} [${rewrite.type}]
21% endfor
22        RewriteRule ^/(.*) /var/www/invirt-web/unauth.fcgi/$1 [L]
23
24        ErrorLog /var/log/apache2/error.log
25
26        # Possible values include: debug, info, notice, warn, error, crit,
27        # alert, emerg.
28        LogLevel notice
29
30        CustomLog /var/log/apache2/access.log combined
31
32
33        ServerSignature On
34        % for redirect in cfg.web.sites.default.redirects:
35          Redirect /${redirect.rule} ${redirect.target}
36        % endfor
37</VirtualHost>
Note: See TracBrowser for help on using the repository browser.