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 SSLCertificateChainFile ssl/server.crt
46 SSLCertificateKeyFile ssl/server.key
48 SSLCACertificateFile /etc/ssl/certs/mitCAclient.pem
51 SSLOptions +StdEnvVars
53 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
55 Redirect /wiki ${tracuri}
58 ServerAdmin ${errmail}
59 ServerName ${hostname}:443
60 <%call expr="invirt_webinterface()">
63 AuthSSLCertVar SSL_CLIENT_S_DN_Email
64 AuthSSLCertStripSuffix "@MIT.EDU"
66 SSLVerifyClient require
69 ServerAdmin ${errmail}
70 ServerName ${hostname}:442
71 <%call expr="invirt_webinterface()">
77 KrbAuthRealms ${cfg.kerberos.realm}
78 Krb5Keytab /etc/invirt/keytab
79 KrbSaveCredentials off
81 SSLVerifyClient optional
85 ServerAdmin ${errmail}
86 ServerName ${hostname}:446
88 DocumentRoot /var/www/invirt-web
90 Options Indexes FollowSymLinks MultiViews ExecCGI
96 ErrorLog /var/log/apache2/error.log
98 # Possible values include: debug, info, notice, warn, error, crit,
102 CustomLog /var/log/apache2/ssl_nocert_access.log combined
107 SSLCertificateFile ssl/server.crt
108 SSLCertificateKeyFile ssl/server.key
112 SSLOptions +StdEnvVars
114 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0