lighttpd: Enable SSL for mail.stdout.nl.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / stdout-nl
index 64956e5cea833007afa6b9dc37b14357aa1b4f39..5ca8a714acf1c0f0fabe205145870dbcd407d99f 100644 (file)
@@ -19,4 +19,13 @@ $HTTP["host"] =~ ".stdout.nl$" {
                        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" )
+               }
+       }
 }