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 ^/(.*) /var/www/invirt-web/auth.fcgi/$1 [L]
30 RewriteLog /var/log/apache2/rewrite.log
33 ErrorLog /var/log/apache2/error.log
35 # Possible values include: debug, info, notice, warn, error, crit,
39 CustomLog /var/log/apache2/ssl_access.log combined
44 SSLCertificateFile ssl/server.crt
45 SSLCertificateKeyFile ssl/server.key
47 SSLCACertificateFile /etc/ssl/certs/mitCAclient.pem
50 SSLOptions +StdEnvVars
52 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
54 Redirect /wiki ${tracuri}
57 ServerAdmin ${errmail}
58 ServerName ${hostname}:443
59 <%call expr="invirt_webinterface()">
62 AuthSSLCertVar SSL_CLIENT_S_DN_Email
63 AuthSSLCertStripSuffix "@MIT.EDU"
65 SSLVerifyClient require
68 ServerAdmin ${errmail}
69 ServerName ${hostname}:442
70 <%call expr="invirt_webinterface()">
76 KrbAuthRealms ${cfg.kerberos.realm}
77 Krb5Keytab /etc/invirt/keytab
78 KrbSaveCredentials off
80 SSLVerifyClient optional
84 ServerAdmin ${errmail}
85 ServerName ${hostname}:446
87 DocumentRoot /var/www/invirt-web
89 Options Indexes FollowSymLinks MultiViews ExecCGI
95 ErrorLog /var/log/apache2/error.log
97 # Possible values include: debug, info, notice, warn, error, crit,
101 CustomLog /var/log/apache2/ssl_nocert_access.log combined
106 SSLCertificateFile ssl/server.crt
107 SSLCertificateKeyFile ssl/server.key
111 SSLOptions +StdEnvVars
113 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0