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(.*) ${tracuri}$1 [R,L]
28 RewriteRule ^/kill.cgi - [L]
30 RewriteRule ^/(.*) /var/www/invirt-web/main.fcgi/$1 [L]
32 RewriteLog /var/log/apache2/rewrite.log
35 ErrorLog /var/log/apache2/error.log
37 # Possible values include: debug, info, notice, warn, error, crit,
41 CustomLog /var/log/apache2/ssl_access.log combined
46 SSLCertificateFile ssl/server.crt
47 SSLCertificateKeyFile ssl/server.key
49 SSLCACertificateFile ssl/mitCAclient.pem
52 SSLOptions +StdEnvVars
54 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
56 Redirect /wiki ${tracuri}
59 ServerAdmin ${errmail}
60 ServerName ${hostname}:443
61 <%call expr="invirt_webinterface()">
64 AuthSSLCertVar SSL_CLIENT_S_DN_Email
65 AuthSSLCertStripSuffix "@MIT.EDU"
67 SSLVerifyClient require
70 ServerAdmin ${errmail}
71 ServerName ${hostname}:442
72 <%call expr="invirt_webinterface()">
78 KrbAuthRealms ${cfg.kerberos.realm}
79 Krb5Keytab /etc/invirt/keytab
80 KrbSaveCredentials off
82 SSLVerifyClient optional
86 ServerAdmin ${errmail}
87 ServerName ${hostname}:446
89 DocumentRoot /var/www/invirt-web
91 Options Indexes FollowSymLinks MultiViews ExecCGI
97 ErrorLog /var/log/apache2/error.log
99 # Possible values include: debug, info, notice, warn, error, crit,
103 CustomLog /var/log/apache2/ssl_nocert_access.log combined
108 SSLCertificateFile ssl/server.crt
109 SSLCertificateKeyFile ssl/server.key
113 SSLOptions +StdEnvVars
115 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0