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") }