summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-10-19 13:46:27 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-10-19 13:46:27 -0700
commitf240d642f4e3e2f01fb075022b4023512647a0c1 (patch)
tree8dcd51f58355c876cd42ed246cd06f03ed31f7bb /docker
parent3a9cc248ea9fc77e805e6afc241f2bb16b9a887b (diff)
Additional mimetypes for lighttpd
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>
Diffstat (limited to 'docker')
-rw-r--r--docker/lighttpd.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/lighttpd.conf b/docker/lighttpd.conf
index 024a259c..e9a5a375 100644
--- a/docker/lighttpd.conf
+++ b/docker/lighttpd.conf
@@ -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" )