lighttpd: Enable Squirrelmail and Hastymail webmail.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 8 Feb 2010 10:32:43 +0000 (11:32 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Mon, 8 Feb 2010 10:32:43 +0000 (11:32 +0100)
etc/lighttpd/vhosts/stdout-nl

index 224818c6a2375f58e5920c066ab092d9fc267d83..64956e5cea833007afa6b9dc37b14357aa1b4f39 100644 (file)
@@ -10,4 +10,13 @@ $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" )
+               }
+       }
 }