Last change
on this file since 2671 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
|
Rev | Line | |
---|
[1669] | 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 | %> |
---|
[509] | 7 | NameVirtualHost *: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] |
---|
| 25 | RewriteRule ^/sipb-xen(.*) /invirt$1 [PT] |
---|
[595] | 26 | RewriteRule ^/kill.cgi - [L] |
---|
[848] | 27 | RewriteRule ^/~ - [L] |
---|
[1318] | 28 | RewriteRule ^/(.*) /var/www/invirt-web/main.fcgi/$1 [L] |
---|
[509] | 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.