lighttpd: Have an access log per subdomain.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / lighttpd.conf
index 5a0dc8d8d7046fe7ffc7c438de5185ee882a8d35..4da053e111b8e03dd287baf5175501fe375ba6c4 100644 (file)
@@ -69,9 +69,26 @@ server.groupname           = "www-data"
 # Make mysqll frontend available in all domains
 alias.url                  += ("/mysql" => "/usr/share/phpmyadmin")
 
+$SERVER["socket"] == ":443" {
+       ssl.engine = "enable" 
+       # The CA certificates (in particular, this contains the intermediate
+       # certificate used by startcom). It seems that even without this
+       # option, it already works, probably because openssl ships some
+       # certificates. But, let's put it here to be safe anyway.
+       ssl.ca-file = "/etc/lighttpd/ssl/ca/startssl-all-ca.pem"
+       # Use the mail.stdin.nl certificate as the default certificate (for
+       # non-SNI browsers and domains without their own certificate), since
+       # it is currently the only one we have anyway.
+       ssl.pemfile = "/etc/lighttpd/ssl/mail.stdin.nl.pem"
+}
+
 #### external configuration files
 ## mimetype mapping
 include_shell var.conf-dir + "/scripts/create-mime.assign.pl"
 
 ## load vhosts
 include_shell var.conf-dir + "/scripts/include-vhosts.pl"
+
+# Include autogenerated logging configuration to have a separate access log
+# file for every subdomain.
+include var.conf-dir + "/logging.conf"