summaryrefslogtreecommitdiffstats
path: root/etc/lighttpd/lighttpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/lighttpd/lighttpd.conf')
-rw-r--r--etc/lighttpd/lighttpd.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/etc/lighttpd/lighttpd.conf b/etc/lighttpd/lighttpd.conf
new file mode 100644
index 0000000..a6805cc
--- /dev/null
+++ b/etc/lighttpd/lighttpd.conf
@@ -0,0 +1,32 @@
+var.basedir = "/var/www/localhost"
+var.logdir = "/var/log/lighttpd"
+var.statedir = "/var/lib/lighttpd"
+server.modules = (
+ "mod_access",
+ "mod_setenv",
+ "mod_simple_vhost",
+ "mod_accesslog"
+)
+include "mime-types.conf"
+include "mod_cgi.conf"
+server.username = "lighttpd"
+server.groupname = "lighttpd"
+server.document-root = var.basedir + "/htdocs"
+server.pid-file = "/var/run/lighttpd.pid"
+server.errorlog = var.logdir + "/error.log"
+server.indexfiles = ("index.php", "index.lua", "index.html"
+ "index.htm", "default.htm")
+server.follow-symlink = "enable"
+static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi", ".lua")
+accesslog.filename = var.logdir + "/access.log"
+dir-listing.activate = "enable"
+dir-listing.hide-dotfiles = "enable"
+url.access-deny = ("~", ".inc")
+simple-vhost.server-root = "/var/www"
+simple-vhost.default-host = "localhost"
+simple-vhost.document-root = "/htdocs/"
+setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
+$HTTP["url"] =~ "\.log\.gz$" {
+ setenv.add-response-header = ("Content-Encoding" => "x-gzip")
+ mimetype.assign = (".log.gz" => "text/plain")
+}