source: trunk/packages/sipb-xen-www/files/etc/apache2/sites-available/default @ 511

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

Apache config to allow that front page

Review of this patch is particularly welcome, since I don't
actually know entirely what I'm doing.

File size: 1.6 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                # This directive allows us to have apache2's default start page
12                # in /apache2-default/, but still have / go to the right place
13                #RedirectMatch ^/$ /apache2-default/
14                #Redirect / https://sipb-xen-dev.mit.edu/
15                #RedirectMatch ^/(!?trac) https://sipb-xen-dev.mit.edu/
16        </Directory>
17
18        RewriteEngine On
19        RewriteRule ^/static(.*) - [L]
20        RewriteRule ^/trac.fcgi(.*) - [L]
21        RewriteRule ^/trac/chrome/common(.*) /usr/share/trac/htdocs$1 [L]
22        RewriteRule ^/trac/login(.*) https://sipb-xen-dev.mit.edu/trac/login$1 [L]
23        RewriteRule ^/trac(.*) /var/www/trac/trac.fcgi$1 [L]
24        RewriteRule ^/sipb-xen - [L]
25        RewriteRule ^/(.*) /var/www/sipb-xen-www/main.py/$1 [L]
26
27        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
28        <Directory "/usr/lib/cgi-bin">
29                AllowOverride None
30                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
31                Order allow,deny
32                Allow from all
33                #Redirect / https://sipb-xen-dev.mit.edu/
34        </Directory>
35
36        ErrorLog /var/log/apache2/error.log
37
38        # Possible values include: debug, info, notice, warn, error, crit,
39        # alert, emerg.
40        LogLevel notice
41
42        CustomLog /var/log/apache2/access.log combined
43        ServerSignature On
44
45    Alias /doc/ "/usr/share/doc/"
46    <Directory "/usr/share/doc/">
47        Options Indexes MultiViews FollowSymLinks
48        AllowOverride None
49        Order deny,allow
50        Deny from all
51        Allow from 127.0.0.0/255.0.0.0 ::1/128
52    </Directory>
53
54</VirtualHost>
Note: See TracBrowser for help on using the repository browser.