blob: b8f2ec7d475061be90d84f80b0ab79c202b6f600 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
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",
)
}
|