source: trunk/packages/invirt-web/files/etc/apache2/sites-available/default.mako @ 2960

Last change on this file since 2960 was 2765, checked in by broder, 15 years ago

Do some config cleanup in invirt-web.

File size: 871 bytes
RevLine 
[1669]1<%
2from invirt.config import structs as cfg
3hostname = cfg.web.hostname
4errmail  = cfg.web.errormail
5tracuri  = cfg.trac.uri
6%>
[509]7NameVirtualHost *:80
8<VirtualHost *:80>
[1669]9        ServerAdmin ${errmail}
10        ServerName ${hostname}:80
[509]11       
[1318]12        DocumentRoot /var/www/invirt-web
13        <Directory /var/www/invirt-web>
[509]14                Options Indexes FollowSymLinks MultiViews ExecCGI
15                AllowOverride None
16                Order allow,deny
17                allow from all
18        </Directory>
19
20        RewriteEngine On
[511]21        RewriteRule ^/static(.*) - [L]
[867]22        RewriteRule ^/admin/static(.*) /static/$1 [L]
[1674]23        RewriteRule ^/trac(.*) ${tracuri}$1 [R,L]
[1331]24        RewriteRule ^/invirt - [L]
[2737]25        RewriteRule ^/(.*) /var/www/invirt-web/unauth.fcgi/$1 [L]
[509]26
27        ErrorLog /var/log/apache2/error.log
28
29        # Possible values include: debug, info, notice, warn, error, crit,
30        # alert, emerg.
31        LogLevel notice
32
33        CustomLog /var/log/apache2/access.log combined
34        ServerSignature On
35</VirtualHost>
Note: See TracBrowser for help on using the repository browser.