make web hostname canonicalize as xvm, not sipb-xen-dev
[invirt/packages/invirt-web.git] / files / etc / apache2 / sites-available / default
1 NameVirtualHost *: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>