Additional mimetypes for lighttpd 09/19809/1
authorGary Wu <gary.i.wu@huawei.com>
Thu, 19 Oct 2017 20:46:27 +0000 (13:46 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Thu, 19 Oct 2017 20:46:27 +0000 (13:46 -0700)
Add mimetype assignments to lighttpd to fix issue with
unassigned file types being sent without Last-Modified header.

Change-Id: I62e3b2b0cb70c29585b2db1ad85e8ba1ec53acfa
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
docker/lighttpd.conf

index 024a259..e9a5a37 100644 (file)
@@ -13,7 +13,10 @@ $HTTP["url"] =~ "^/logs/" {
 }
 
 mimetype.assign = (
-  ".html" => "text/html"
+  ".log" => "text/plain",
+  ".txt" => "text/plain",
+  ".html" => "text/html",
+  ".xml" => "text/xml"
 )
 
 static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" )