1 $HTTP["host"] =~ ".stdin.nl$" {
2 var.site-dir = var.root-dir + "/stdin.nl"
3 var.site-fcgi-dir = var.fcgi-dir + "/stdin-nl"
5 evhost.path-pattern = var.site-dir + "/htdocs/%3/"
6 accesslog.filename = var.site-dir + "/logs/access.log"
8 fastcgi.server = ( ".php" =>
10 "socket" => var.site-fcgi-dir + "/php",
11 "broken-scriptfilename" => "enable",
15 $HTTP["host"] == "mail.stdin.nl" {
16 alias.url += ( "/squirrel" => "/usr/share/squirrelmail" )
18 # Only expose parts of the hastymail directory
19 $HTTP["url"] =~ "^/hastymail(|/index.php|/templates|/js|/plugins|/images)(|/.*)$" {
20 alias.url += ( "/hastymail" => var.site-dir + "/applications/hastymail2" )
25 $HTTP["host"] == "mail.stdin.nl" {
26 # Specify the certificate for this domain (uses SNI)
27 ssl.pemfile = "/etc/lighttpd/ssl/mail.stdin.nl.pem"
28 # Redirect HTTP to HTTPS
29 $HTTP["scheme"] == "http" {
30 url.redirect = ( "^(.*)" => "https://mail.stdin.nl$1" )