]> git.p6c8.net - jirafeau/mojo42.git/blobdiff - docker/lighttpd.conf
[FEATURE] Add docker image support
[jirafeau/mojo42.git] / docker / lighttpd.conf
diff --git a/docker/lighttpd.conf b/docker/lighttpd.conf
new file mode 100644 (file)
index 0000000..0e4bb5d
--- /dev/null
@@ -0,0 +1,34 @@
+var.basedir  = "/www"
+var.logdir   = "/var/log/lighttpd"
+var.statedir = "/var/lib/lighttpd"
+
+server.modules = (
+    "mod_access",
+    "mod_usertrack",
+    "mod_expire",
+    "mod_accesslog"
+)
+
+include "mime-types.conf"
+include "mod_fastcgi_fpm.conf"
+
+server.username      = "lighttpd"
+server.groupname     = "lighttpd"
+
+server.pid-file      = "/run/lighttpd.pid"
+server.errorlog      = var.logdir  + "/error.log"
+server.indexfiles    = ("index.php", "index.html", "index.htm")
+server.follow-symlink = "enable"
+server.document-root = var.basedir
+
+dir-listing.show-header = "disable"
+dir-listing.hide-header-file = "enable"
+dir-listing.activate = "disable"
+
+static-file.exclude-extensions = (".php")
+
+accesslog.filename   = var.logdir + "/access.log"
+url.access-deny = ("~", ".inc")
+$HTTP["url"] =~ "^/var-*" {
+     url.access-deny = ("")
+}

patrick-canterino.de