blob: a6805cca209c94d972f721bffb3a66912b4b2f1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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")
}
|