diff options
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/tests/lowercase.conf')
-rw-r--r-- | data/lighttpd/lighttpd-1.4.53/tests/lowercase.conf | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/tests/lowercase.conf b/data/lighttpd/lighttpd-1.4.53/tests/lowercase.conf new file mode 100644 index 000000000..b8f2ec7d4 --- /dev/null +++ b/data/lighttpd/lighttpd-1.4.53/tests/lowercase.conf @@ -0,0 +1,46 @@ +server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" + +## bind to port (default: 80) +server.port = 2048 + +## bind to localhost (default: all interfaces) +server.bind = "localhost" +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.modules = ( + "mod_access", + "mod_auth", + "mod_authn_file", +) + +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", + ) +} |