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
52 SSLProtocol all -SSLv2
53 SSLCipherSuite RC4-SHA:AES128-SHA:ALL:!ADH:!EXP:!LOW:!MD5:!SSLV2:!NULL
55 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
57 Redirect /wiki ${tracuri}
60 ServerAdmin ${errmail}
61 ServerName ${hostname}:443
62 <%call expr="invirt_webinterface()">
65 AuthSSLCertVar SSL_CLIENT_S_DN_Email
66 AuthSSLCertStripSuffix "@MIT.EDU"
68 SSLVerifyClient require
71 ServerAdmin ${errmail}
72 ServerName ${hostname}:442
73 <%call expr="invirt_webinterface()">
79 KrbAuthRealms ${cfg.kerberos.realm}
80 Krb5Keytab /etc/invirt/keytab
81 KrbSaveCredentials off
83 SSLVerifyClient optional
87 ServerAdmin ${errmail}
88 ServerName ${hostname}:446
90 DocumentRoot /var/www/invirt-web
92 Options Indexes FollowSymLinks MultiViews ExecCGI
98 ErrorLog /var/log/apache2/error.log
100 # Possible values include: debug, info, notice, warn, error, crit,
104 CustomLog /var/log/apache2/ssl_nocert_access.log combined
109 SSLCertificateFile ssl/server.crt
110 SSLCertificateChainFile ssl/server.crt
111 SSLCertificateKeyFile ssl/server.key
115 SSLOptions +StdEnvVars
116 SSLProtocol all -SSLv2
117 SSLCipherSuite RC4-SHA:AES128-SHA:ALL:!ADH:!EXP:!LOW:!MD5:!SSLV2:!NULL
119 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0