lighttpd 1.4.x
https://www.lighttpd.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
959 B
43 lines
959 B
server.systemd-socket-activation = "enable" |
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" |
|
server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log" |
|
server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log" |
|
|
|
server.force-lowercase-filenames = "enable" |
|
|
|
server.compat-module-load = "disable" |
|
server.modules = ( |
|
"mod_access", |
|
"mod_auth", |
|
"mod_authn_file", |
|
"mod_staticfile", |
|
) |
|
|
|
mimetype.assign = ( |
|
".jpg" => "image/jpeg", |
|
) |
|
|
|
auth.backend = "plain" |
|
auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user" |
|
|
|
$HTTP["host"] == "lowercase-auth" { |
|
auth.require = ( |
|
"/image.jpg" => ( |
|
"method" => "digest", |
|
"realm" => "download archiv", |
|
"require" => "valid-user", |
|
), |
|
) |
|
} |
|
|
|
$HTTP["host"] == "lowercase-deny" { |
|
url.access-deny = ( |
|
".jpg", |
|
) |
|
} |
|
|
|
$HTTP["host"] == "lowercase-exclude" { |
|
static-file.exclude-extensions = ( |
|
".jpg", |
|
) |
|
}
|
|
|