X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Flighttpd%2Fvhosts%2Fstdout-nl;h=5ca8a714acf1c0f0fabe205145870dbcd407d99f;hb=fb8291e5712a9bf3cccb4a88a7467e9e691ba5cb;hp=224818c6a2375f58e5920c066ab092d9fc267d83;hpb=8cbae7c2c9aa2d4ed4371113e5900a9adbfa6d5e;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/vhosts/stdout-nl b/etc/lighttpd/vhosts/stdout-nl index 224818c..5ca8a71 100644 --- a/etc/lighttpd/vhosts/stdout-nl +++ b/etc/lighttpd/vhosts/stdout-nl @@ -10,4 +10,22 @@ $HTTP["host"] =~ ".stdout.nl$" { "socket" => var.site-fcgi-dir + "/php", )) ) + + $HTTP["host"] == "mail.stdout.nl" { + alias.url += ( "/squirrel" => "/usr/share/squirrelmail" ) + + # Only expose parts of the hastymail directory + $HTTP["url"] =~ "^/hastymail(|/index.php|/templates|/js|/plugins|/images)(|/.*)$" { + alias.url += ( "/hastymail" => var.site-dir + "/applications/hastymail2" ) + } + } + + $HTTP["host"] == "mail.stdout.nl" { + # Specify the certificate for this domain (uses SNI) + ssl.pemfile = "/etc/lighttpd/ssl/mail.stdout.nl.pem" + # Redirect HTTP to HTTPS for mail.stdout.nl + $HTTP["scheme"] == "http" { + url.redirect = ( "^(.*)" => "https://mail.stdout.nl$1" ) + } + } }