diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2013-06-07 00:54:30 +0000 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2013-06-07 00:54:30 +0000 |
commit | b08abbc6b196c055b26163c58c795bf09b2bb2c1 (patch) | |
tree | c63b3a5ff376a580f113f5223bb1e2b7e160dc2a /lighttpd.conf | |
download | html5ks-b08abbc6b196c055b26163c58c795bf09b2bb2c1.tar.xz html5ks-b08abbc6b196c055b26163c58c795bf09b2bb2c1.zip |
first commit
Diffstat (limited to 'lighttpd.conf')
-rw-r--r-- | lighttpd.conf | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lighttpd.conf b/lighttpd.conf new file mode 100644 index 0000000..a062b6a --- /dev/null +++ b/lighttpd.conf @@ -0,0 +1,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") +} |