lighttpd: Add basic configuration for mkit.nl.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 14 Oct 2010 10:44:07 +0000 (12:44 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 14 Oct 2010 10:57:05 +0000 (12:57 +0200)
etc/lighttpd/vhosts/mkit-nl [new file with mode: 0644]

diff --git a/etc/lighttpd/vhosts/mkit-nl b/etc/lighttpd/vhosts/mkit-nl
new file mode 100644 (file)
index 0000000..ca14add
--- /dev/null
@@ -0,0 +1,17 @@
+$HTTP["host"] =~ ".mkit.nl$" {
+       var.site-dir         = var.root-dir + "/mkit.nl"
+       var.site-fcgi-dir    = var.fcgi-dir + "/mkit-nl"
+
+       evhost.path-pattern  = var.site-dir + "/htdocs/%3/"
+
+       fastcgi.server    = ( ".php" =>
+               ((
+                       "socket" => var.site-fcgi-dir + "/php",
+               ))
+       )
+
+       $HTTP["url"] =~ "^/static/tmp/" {
+               # Enable dirlistings for /tmp
+               server.dir-listing = "enable"
+       }
+}