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"
|
|
|
|
|
2020-12-25 04:39:52 +00:00
|
|
|
server.compat-module-load = "disable"
|
2015-08-22 20:51:08 +00:00
|
|
|
server.modules = (
|
|
|
|
"mod_access",
|
|
|
|
"mod_auth",
|
2016-11-30 03:32:28 +00:00
|
|
|
"mod_authn_file",
|
2020-12-25 04:39:52 +00:00
|
|
|
"mod_staticfile",
|
2015-08-22 20:51:08 +00:00
|
|
|
)
|
2006-01-14 17:47:17 +00:00
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
mimetype.assign = (
|
|
|
|
".jpg" => "image/jpeg",
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
$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
|
|
|
}
|