Apache config to allow that front page
[invirt/packages/invirt-web.git] / files / etc / apache2 / sites-available / default
index dc99744..7f01f05 100644 (file)
@@ -2,8 +2,8 @@ NameVirtualHost *:80
 <VirtualHost *:80>
        ServerAdmin webmaster@localhost
        
 <VirtualHost *:80>
        ServerAdmin webmaster@localhost
        
-       DocumentRoot /var/www/
-       <Directory /var/www/>
+       DocumentRoot /var/www/sipb-xen-www
+       <Directory /var/www/sipb-xen-www>
                Options Indexes FollowSymLinks MultiViews ExecCGI
                AllowOverride None
                Order allow,deny
                Options Indexes FollowSymLinks MultiViews ExecCGI
                AllowOverride None
                Order allow,deny
@@ -16,13 +16,13 @@ NameVirtualHost *:80
        </Directory>
 
        RewriteEngine On
        </Directory>
 
        RewriteEngine On
-       #RewriteRule ^/trac - [L]
+       RewriteRule ^/static(.*) - [L]
         RewriteRule ^/trac.fcgi(.*) - [L]
         RewriteRule ^/trac/chrome/common(.*) /usr/share/trac/htdocs$1 [L]
        RewriteRule ^/trac/login(.*) https://sipb-xen-dev.mit.edu/trac/login$1 [L]
         RewriteRule ^/trac(.*) /var/www/trac/trac.fcgi$1 [L]
        RewriteRule ^/sipb-xen - [L]
         RewriteRule ^/trac.fcgi(.*) - [L]
         RewriteRule ^/trac/chrome/common(.*) /usr/share/trac/htdocs$1 [L]
        RewriteRule ^/trac/login(.*) https://sipb-xen-dev.mit.edu/trac/login$1 [L]
         RewriteRule ^/trac(.*) /var/www/trac/trac.fcgi$1 [L]
        RewriteRule ^/sipb-xen - [L]
-       RewriteRule ^(.*) https://sipb-xen-dev.mit.edu$1
+       RewriteRule ^/(.*) /var/www/sipb-xen-www/main.py/$1 [L]
 
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
 
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">