diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2013-06-21 19:11:14 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2013-06-21 19:11:14 -0400 |
commit | 8d2caf2bb9108b9f4ec66dc7d6608406a43a17d6 (patch) | |
tree | 1e11838c665347d6db5d38e678e7e11dff5b91eb /lighttpd.conf | |
parent | e7200fa50a7d323885f3e15d3692794ce99543e3 (diff) | |
download | html5ks-8d2caf2bb9108b9f4ec66dc7d6608406a43a17d6.tar.xz html5ks-8d2caf2bb9108b9f4ec66dc7d6608406a43a17d6.zip |
keepin' on workin'
Diffstat (limited to 'lighttpd.conf')
-rw-r--r-- | lighttpd.conf | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lighttpd.conf b/lighttpd.conf index 745a5d7..24b2bf2 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -1,23 +1,32 @@ 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", +# ".mkv" => "video/x-matroska", ".ogg" => "audio/ogg", ".png" => "image/png", ".svg" => "image/svg+xml", - ".ttf" => "application/x-font-ttf", +# ".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") + +server.modules = ( "mod_compress", "mod_expire", "mod_setenv" ) + +expire.url = ("/dump/" => "access plus 1 years", "/js/lib/" => "access plus 1 days") +setenv.add-response-header += ( + "Cache-Control" => "public" +) + compress.cache-dir = "/tmp/lighttpd-compress" compress.filetype = ("text/html", "text/plain", "text/css", "text/javascript") |