forked from lpereira/lwan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lwan.conf
42 lines (41 loc) · 882 Bytes
/
lwan.conf
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
keep_alive_timeout = 15
quiet = false
reuse_port = false
expires = 1M 1w
threads = 0
listener *:8080 {
prefix /hello {
handler = hello_world
}
prefix /chunked {
handler = test_chunked_encoding
}
prefix /sse {
handler = test_server_sent_event
}
prefix /beacon {
handler = gif_beacon
}
prefix /favicon.ico {
handler = gif_beacon
}
redirect /elsewhere {
to = http://lwan.ws
}
prefix /admin {
handler = hello_world
authorization basic {
realm = Administration Page
password file = htpasswd
}
}
lua /lua {
default type = text/html
script file = test.lua
cache period = 30s
}
serve_files / {
path = ./wwwroot
serve precompressed files = true
}
}