X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/63d843c012135d0b3f415b9ba614aff30097aadc..04fc30b39f1ea99064d48f662eee0cd74e66e46c:/files/etc/apache2/sites-available/ssl.mako?ds=sidebyside diff --git a/files/etc/apache2/sites-available/ssl.mako b/files/etc/apache2/sites-available/ssl.mako index d47a0bf..b722bfd 100644 --- a/files/etc/apache2/sites-available/ssl.mako +++ b/files/etc/apache2/sites-available/ssl.mako @@ -4,25 +4,19 @@ hostname = cfg.web.hostname errmail = cfg.web.errormail tracuri = cfg.trac.uri %> -Listen 443 +Listen 442 Listen 446 - - ServerAdmin ${errmail} - ServerName ${hostname}:443 - - DocumentRoot /var/www/sipb-xen-www - +<%def name="invirt_webinterface()"> + DocumentRoot /var/www/invirt-web + Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride None Order allow,deny allow from all - Require valid-user - AuthType SSLCert - AuthSSLCertVar SSL_CLIENT_S_DN_Email - AuthSSLCertStripSuffix "@MIT.EDU" +${caller.body()} RewriteEngine On @@ -37,7 +31,7 @@ Listen 446 RewriteRule ^/wiki(.*) - [L] RewriteRule ^/kill.cgi - [L] RewriteRule ^/~ - [L] - RewriteRule ^/(.*) /var/www/sipb-xen-www/main.fcgi/$1 [L] + RewriteRule ^/(.*) /var/www/invirt-web/main.fcgi/$1 [L] RewriteLog /var/log/apache2/rewrite.log RewriteLogLevel 0 @@ -57,7 +51,6 @@ Listen 446 SSLCertificateKeyFile ssl/server.key SSLCACertificateFile ssl/mitCAclient.pem - SSLVerifyClient require SSLVerifyDepth 10 SSLOptions +StdEnvVars @@ -65,13 +58,39 @@ Listen 446 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 Redirect /wiki ${tracuri} + + + ServerAdmin ${errmail} + ServerName ${hostname}:443 + <%call expr="invirt_webinterface()"> + Require valid-user + AuthType SSLCert + AuthSSLCertVar SSL_CLIENT_S_DN_Email + AuthSSLCertStripSuffix "@MIT.EDU" + + SSLVerifyClient require + + + ServerAdmin ${errmail} + ServerName ${hostname}:442 + <%call expr="invirt_webinterface()"> + Require valid-user + AuthType Kerberos + KrbMethodNegotiate on + KrbMethodK5Passwd off + KrbAuthoritative off + KrbAuthRealms ${cfg.authn[0].realm} + Krb5Keytab /etc/invirt/keytab + KrbSaveCredentials off + + SSLVerifyClient optional ServerAdmin ${errmail} ServerName ${hostname}:446 - DocumentRoot /var/www/sipb-xen-www + DocumentRoot /var/www/invirt-web Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride None