1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
server.document-root = var.CWD + "/www"
server.port = 8080
mimetype.assign = (
".css" => "text/css",
".html" => "text/html; charset=utf-8",
".jpg" => "image/jpeg",
".js" => "text/javascript",
".mkv" => "video/x-matroska",
".ogg" => "audio/ogg",
".png" => "image/png",
".svg" => "image/svg+xml",
".ttf" => "application/x-font-ttf",
".txt" => "text/plain; charset=utf-8",
".webm" => "video/webm",
".webp" => "image/webp",
".woff" => "application/font-woff"
)
index-file.names = ("index.html")
dir-listing.activate = "enable"
server.modules = ( "mod_compress", "mod_expire" )
expire.url = ("/dump/" => "access plus 1 years")
compress.cache-dir = "/tmp/lighttpd-compress"
compress.filetype = ("text/html", "text/plain", "text/css", "text/javascript")
|