source: branches/wsgi/packages/sipb-xen-www/files/etc/apache2/sites-available/default @ 1546

Last change on this file since 1546 was 526, checked in by price, 16 years ago

make web hostname canonicalize as xvm, not sipb-xen-dev

File size: 1.3 KB
Line 
1NameVirtualHost *:80
2<VirtualHost *:80>
3        ServerAdmin webmaster@localhost
4       
5        DocumentRoot /var/www/sipb-xen-www
6        <Directory /var/www/sipb-xen-www>
7                Options Indexes FollowSymLinks MultiViews ExecCGI
8                AllowOverride None
9                Order allow,deny
10                allow from all
11        </Directory>
12
13        RewriteEngine On
14        RewriteRule ^/static(.*) - [L]
15        RewriteRule ^/trac.fcgi(.*) - [L]
16        RewriteRule ^/trac/chrome/common(.*) /usr/share/trac/htdocs$1 [L]
17        RewriteRule ^/trac/login(.*) https://xvm.mit.edu/trac/login$1 [L]
18        RewriteRule ^/trac(.*) /var/www/trac/trac.fcgi$1 [L]
19        RewriteRule ^/sipb-xen - [L]
20        RewriteRule ^/(.*) /var/www/sipb-xen-www/main.py/$1 [L]
21
22        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
23        <Directory "/usr/lib/cgi-bin">
24                AllowOverride None
25                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
26                Order allow,deny
27                Allow from all
28        </Directory>
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.