source: package_branches/invirt-web/cherrypy/files/etc/apache2/sites-available/default.mako @ 2665

Last change on this file since 2665 was 2651, checked in by broder, 15 years ago

Use separate fcgi files for the authed and unauthed site.

This allows both of them to be mounted on / in their respective
CherryPy? apps, which in turn eliminates any discrepancy between
"internal URLs" and "external URLs".

File size: 1.1 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 ^/kill.cgi - [L]
26        RewriteRule ^/(.*) /var/www/invirt-web/unauth.fcgi/$1 [L]
27
28        ErrorLog /var/log/apache2/error.log
29
30        # Possible values include: debug, info, notice, warn, error, crit,
31        # alert, emerg.
32        LogLevel notice
33
34        CustomLog /var/log/apache2/access.log combined
35        ServerSignature On
36
37    Alias /doc/ "/usr/share/doc/"
38    <Directory "/usr/share/doc/">
39        Options Indexes MultiViews FollowSymLinks
40        AllowOverride None
41        Order deny,allow
42        Deny from all
43        Allow from 127.0.0.0/255.0.0.0 ::1/128
44    </Directory>
45
46</VirtualHost>
Note: See TracBrowser for help on using the repository browser.