2006-09-07 11:11:30 +00:00
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
2006-01-14 17:47:17 +00:00
|
|
|
|
|
|
|
## bind to port (default: 80)
|
|
|
|
server.port = 2048
|
|
|
|
|
|
|
|
## bind to localhost (default: all interfaces)
|
|
|
|
server.bind = "localhost"
|
2006-09-07 11:11:30 +00:00
|
|
|
server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
|
2009-07-01 16:16:40 +00:00
|
|
|
server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
|
2006-01-14 17:47:17 +00:00
|
|
|
|
|
|
|
server.force-lowercase-filenames = "enable"
|
|
|
|
|
|
|
|
server.dir-listing = "enable"
|
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
server.modules = (
|
|
|
|
"mod_rewrite",
|
|
|
|
"mod_setenv",
|
|
|
|
"mod_secdownload",
|
|
|
|
"mod_access",
|
|
|
|
"mod_auth",
|
2016-11-30 03:32:28 +00:00
|
|
|
"mod_authn_file",
|
2015-08-22 20:51:08 +00:00
|
|
|
"mod_status",
|
|
|
|
"mod_expire",
|
|
|
|
"mod_redirect",
|
|
|
|
"mod_fastcgi",
|
|
|
|
"mod_cgi",
|
|
|
|
)
|
|
|
|
|
|
|
|
server.indexfiles = (
|
|
|
|
"index.php",
|
|
|
|
"index.html",
|
|
|
|
"index.htm",
|
|
|
|
"default.htm",
|
|
|
|
)
|
2006-01-14 17:47:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
######################## MODULE CONFIG ############################
|
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
mimetype.assign = (
|
|
|
|
".png" => "image/png",
|
|
|
|
".jpg" => "image/jpeg",
|
|
|
|
".jpeg" => "image/jpeg",
|
|
|
|
".gif" => "image/gif",
|
|
|
|
".html" => "text/html",
|
|
|
|
".htm" => "text/html",
|
|
|
|
".pdf" => "application/pdf",
|
|
|
|
".swf" => "application/x-shockwave-flash",
|
|
|
|
".spl" => "application/futuresplash",
|
|
|
|
".txt" => "text/plain",
|
|
|
|
".tar.gz" => "application/x-tgz",
|
|
|
|
".tgz" => "application/x-tgz",
|
|
|
|
".gz" => "application/x-gzip",
|
|
|
|
".c" => "text/plain",
|
|
|
|
".conf" => "text/plain",
|
|
|
|
)
|
|
|
|
|
|
|
|
fastcgi.debug = 0
|
|
|
|
fastcgi.server = (
|
|
|
|
".php" => ( (
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
"port" => 1026,
|
|
|
|
"broken-scriptfilename" => "enable",
|
|
|
|
) ),
|
|
|
|
"/prefix.fcgi" => ( (
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
"port" => 1026,
|
|
|
|
"check-local" => "disable",
|
|
|
|
"broken-scriptfilename" => "enable",
|
|
|
|
) ),
|
|
|
|
)
|
|
|
|
|
|
|
|
cgi.assign = (
|
|
|
|
".pl" => env.PERL,
|
|
|
|
".cgi" => env.PERL,
|
|
|
|
)
|
|
|
|
|
|
|
|
auth.backend = "plain"
|
2006-09-07 11:11:30 +00:00
|
|
|
auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
|
2006-01-14 17:47:17 +00:00
|
|
|
|
2006-09-07 11:11:30 +00:00
|
|
|
auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
|
2006-01-14 17:47:17 +00:00
|
|
|
|
|
|
|
$HTTP["host"] == "lowercase-auth" {
|
2015-08-22 20:51:08 +00:00
|
|
|
auth.require = (
|
|
|
|
"/image.jpg" => (
|
|
|
|
"method" => "digest",
|
|
|
|
"realm" => "download archiv",
|
|
|
|
"require" => "valid-user",
|
|
|
|
),
|
|
|
|
)
|
2006-01-14 17:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$HTTP["host"] == "lowercase-deny" {
|
2015-08-22 20:51:08 +00:00
|
|
|
url.access-deny = (
|
|
|
|
".jpg",
|
|
|
|
)
|
2006-01-14 17:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$HTTP["host"] == "lowercase-exclude" {
|
2015-08-22 20:51:08 +00:00
|
|
|
static-file.exclude-extensions = (
|
|
|
|
".jpg",
|
|
|
|
)
|
2006-01-14 17:47:17 +00:00
|
|
|
}
|