Last change
on this file since 2982 was
2765,
checked in by broder, 15 years ago
|
Do some config cleanup in invirt-web.
|
File size:
871 bytes
|
Line | |
---|
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 ^/(.*) /var/www/invirt-web/unauth.fcgi/$1 [L] |
---|
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.