source: trunk/packages/invirt-web/files/etc/apache2/sites-available/default @ 1318

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

sipb-xen-www -> invirt-web

File size: 1.4 KB
Line 
1NameVirtualHost *:80
2<VirtualHost *:80>
3        ServerAdmin webmaster@localhost
4       
5        DocumentRoot /var/www/invirt-web
6        <Directory /var/www/invirt-web>
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 ^/admin/static(.*) /static/$1 [L]
16        RewriteRule ^/trac.fcgi(.*) - [L]
17        RewriteRule ^/trac/chrome/common(.*) /usr/share/trac/htdocs$1 [L]
18        RewriteRule ^/trac/login(.*) https://xvm.mit.edu/trac/login$1 [L]
19        RewriteRule ^/trac(.*) /var/www/trac/trac.fcgi$1 [L]
20        RewriteRule ^/sipb-xen - [L]
21        RewriteRule ^/kill.cgi - [L]
22        RewriteRule ^/~ - [L]
23        RewriteRule ^/(.*) /var/www/invirt-web/main.fcgi/$1 [L]
24
25        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
26        <Directory "/usr/lib/cgi-bin">
27                AllowOverride None
28                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
29                Order allow,deny
30                Allow from all
31        </Directory>
32
33        ErrorLog /var/log/apache2/error.log
34
35        # Possible values include: debug, info, notice, warn, error, crit,
36        # alert, emerg.
37        LogLevel notice
38
39        CustomLog /var/log/apache2/access.log combined
40        ServerSignature On
41
42    Alias /doc/ "/usr/share/doc/"
43    <Directory "/usr/share/doc/">
44        Options Indexes MultiViews FollowSymLinks
45        AllowOverride None
46        Order deny,allow
47        Deny from all
48        Allow from 127.0.0.0/255.0.0.0 ::1/128
49    </Directory>
50
51</VirtualHost>
Note: See TracBrowser for help on using the repository browser.