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

Last change on this file since 2048 was 1674, checked in by broder, 16 years ago

Fix all kinds of problems with that last version of invirt-web

File size: 1.2 KB
Line 
1<%
2from invirt.config import structs as cfg
3hostname = cfg.web.hostname
4errmail  = cfg.web.errormail
5tracuri  = cfg.trac.uri
6%>
7NameVirtualHost *: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 ^/sipb-xen(.*) /invirt$1 [PT]
26        RewriteRule ^/kill.cgi - [L]
27        RewriteRule ^/~ - [L]
28        RewriteRule ^/(.*) /var/www/invirt-web/main.fcgi/$1 [L]
29
30        ErrorLog /var/log/apache2/error.log
31
32        # Possible values include: debug, info, notice, warn, error, crit,
33        # alert, emerg.
34        LogLevel notice
35
36        CustomLog /var/log/apache2/access.log combined
37        ServerSignature On
38
39    Alias /doc/ "/usr/share/doc/"
40    <Directory "/usr/share/doc/">
41        Options Indexes MultiViews FollowSymLinks
42        AllowOverride None
43        Order deny,allow
44        Deny from all
45        Allow from 127.0.0.0/255.0.0.0 ::1/128
46    </Directory>
47
48</VirtualHost>
Note: See TracBrowser for help on using the repository browser.