summaryrefslogtreecommitdiff
path: root/lighttpd.conf
blob: a062b6a7953537fab8cdc9bf59c04ddfec2b175f (plain)
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 = "/home/alex/html5ks"
server.port = 8080
mimetype.assign = (
  ".html" => "text/html",
  ".js" => "text/javascript",
  ".css" => "text/css",
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png",
  ".webp" => "image/webp",
  ".webm" => "video/webm",
  ".mkv" => "video/x-matroska",
  ".ogg" => "audio/ogg",
  ".woff" => "application/font-woff"
)
index-file.names = ("index.html")
server.modules = ( "mod_expire", "mod_compress" )
dir-listing.activate = "enable"
compress.cache-dir = "/tmp/lighttpd-compress"
compress.filetype = ("text/html", "text/plain", "text/css", "text/javascript")
$HTTP["url"] =~ "^/dump/" {
  expire.url = ("" => "access plus 1 years")
}