lighttpd: Enable Squirrelmail and Hastymail webmail.
[matthijs/servers/drsnuggles.git] / 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" )
+               }
+       }
 }