2 from invirt.config import structs as cfg
3 hostname = cfg.web.hostname
4 errmail = cfg.web.errormail
10 ServerAdmin ${errmail}
11 ServerName ${hostname}:443
13 DocumentRoot /var/www/sipb-xen-www
14 <Directory /var/www/sipb-xen-www>
15 Options Indexes FollowSymLinks MultiViews ExecCGI
23 AuthSSLCertVar SSL_CLIENT_S_DN_Email
24 AuthSSLCertStripSuffix "@MIT.EDU"
28 RewriteRule ^/favicon.ico - [L]
29 RewriteRule ^/static(.*) - [L]
30 RewriteRule ^/overlord/static(.*) /static/$1 [L]
31 RewriteRule ^/admin/static(.*) /static/$1 [L]
32 RewriteRule ^/trac.fcgi(.*) - [L]
33 RewriteRule ^/trac/chrome/common(.*) /usr/share/trac/htdocs$1 [L]
34 RewriteRule ^/trac(.*) /var/www/trac/trac.fcgi$1 [L]
35 RewriteRule ^/var(.*) - [L]
36 RewriteRule ^/wiki(.*) - [L]
37 RewriteRule ^/kill.cgi - [L]
39 RewriteRule ^/(.*) /var/www/sipb-xen-www/main.fcgi/$1 [L]
41 RewriteLog /var/log/apache2/rewrite.log
44 ErrorLog /var/log/apache2/error.log
46 # Possible values include: debug, info, notice, warn, error, crit,
50 CustomLog /var/log/apache2/ssl_access.log combined
55 SSLCertificateFile ssl/server.crt
56 SSLCertificateKeyFile ssl/server.key
58 SSLCACertificateFile ssl/mitCAclient.pem
59 SSLVerifyClient require
62 SSLOptions +StdEnvVars
64 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
66 Redirect /wiki ${tracuri}
70 ServerAdmin ${errmail}
71 ServerName ${hostname}:446
73 DocumentRoot /var/www/sipb-xen-www
75 Options Indexes FollowSymLinks MultiViews ExecCGI
81 ErrorLog /var/log/apache2/error.log
83 # Possible values include: debug, info, notice, warn, error, crit,
87 CustomLog /var/log/apache2/ssl_nocert_access.log combined
92 SSLCertificateFile ssl/server.crt
93 SSLCertificateKeyFile ssl/server.key
97 SSLOptions +StdEnvVars
99 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0