2 from invirt.config import structs as cfg
3 hostname = cfg.web.hostname
4 errmail = cfg.web.errormail
10 <%def name="invirt_webinterface()">
11 DocumentRoot /var/www/invirt-web
12 <Directory /var/www/invirt-web>
13 Options Indexes FollowSymLinks MultiViews ExecCGI
23 RewriteRule ^/favicon.ico - [L]
24 RewriteRule ^/static(.*) - [L]
25 RewriteRule ^/overlord/static(.*) /static/$1 [L]
26 RewriteRule ^/admin/static(.*) /static/$1 [L]
27 RewriteRule ^/trac.fcgi(.*) - [L]
28 RewriteRule ^/trac/chrome/common(.*) /usr/share/trac/htdocs$1 [L]
29 RewriteRule ^/trac(.*) /var/www/trac/trac.fcgi$1 [L]
30 RewriteRule ^/var(.*) - [L]
31 RewriteRule ^/wiki(.*) - [L]
32 RewriteRule ^/kill.cgi - [L]
34 RewriteRule ^/(.*) /var/www/invirt-web/main.fcgi/$1 [L]
36 RewriteLog /var/log/apache2/rewrite.log
39 ErrorLog /var/log/apache2/error.log
41 # Possible values include: debug, info, notice, warn, error, crit,
45 CustomLog /var/log/apache2/ssl_access.log combined
50 SSLCertificateFile ssl/server.crt
51 SSLCertificateKeyFile ssl/server.key
53 SSLCACertificateFile ssl/mitCAclient.pem
56 SSLOptions +StdEnvVars
58 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
60 Redirect /wiki ${tracuri}
63 ServerAdmin ${errmail}
64 ServerName ${hostname}:443
65 <%call expr="invirt_webinterface()">
68 AuthSSLCertVar SSL_CLIENT_S_DN_Email
69 AuthSSLCertStripSuffix "@MIT.EDU"
71 SSLVerifyClient require
74 ServerAdmin ${errmail}
75 ServerName ${hostname}:442
76 <%call expr="invirt_webinterface()">
82 KrbAuthRealms ${cfg.authn[0].realm}
83 Krb5Keytab /etc/invirt/keytab
84 KrbSaveCredentials off
86 SSLVerifyClient optional
90 ServerAdmin ${errmail}
91 ServerName ${hostname}:446
93 DocumentRoot /var/www/invirt-web
95 Options Indexes FollowSymLinks MultiViews ExecCGI
101 ErrorLog /var/log/apache2/error.log
103 # Possible values include: debug, info, notice, warn, error, crit,
107 CustomLog /var/log/apache2/ssl_nocert_access.log combined
112 SSLCertificateFile ssl/server.crt
113 SSLCertificateKeyFile ssl/server.key
117 SSLOptions +StdEnvVars
119 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0