summaryrefslogtreecommitdiff
path: root/tempest-lighttpd-static/lighttpd.conf
diff options
context:
space:
mode:
authorClark Laughlin <clark.laughlin@linaro.org>2015-10-19 16:07:44 -0400
committerClark Laughlin <clark.laughlin@linaro.org>2015-10-19 16:07:44 -0400
commit06c222c8a982a7418300b891f9ae8dd1a36899ce (patch)
treef762810f26fdf0db7e12f75ddf492b4ccb864da7 /tempest-lighttpd-static/lighttpd.conf
parent0474ef5f4ab5b2ce82b5e5e00a43c969cbf213d4 (diff)
reorg to pull out common revproxy container
Diffstat (limited to 'tempest-lighttpd-static/lighttpd.conf')
-rw-r--r--tempest-lighttpd-static/lighttpd.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/tempest-lighttpd-static/lighttpd.conf b/tempest-lighttpd-static/lighttpd.conf
new file mode 100644
index 0000000..3fe4b48
--- /dev/null
+++ b/tempest-lighttpd-static/lighttpd.conf
@@ -0,0 +1,33 @@
+# See /usr/share/doc/lighttpd
+
+server.port = 8080
+server.username = "www-data"
+server.groupname = "www-data"
+server.document-root = "/var/www"
+server.errorlog = "/dev/stdout"
+server.modules += ( "mod_setenv" )
+dir-listing.activate = "enable"
+index-file.names = ( "index.html" )
+mimetype.assign = (
+ ".html" => "text/html",
+ ".txt" => "text/plain",
+ ".log" => "text/plain",
+ ".json" => "text/plain",
+ ".css" => "text/css",
+ ".js" => "application/x-javascript",
+ ".jpg" => "image/jpeg",
+ ".jpeg" => "image/jpeg",
+ ".gif" => "image/gif",
+ ".png" => "image/png",
+ ".gz" => "text/plain",
+ "" => "application/octet-stream"
+ )
+
+setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*")
+
+$HTTP["url"] =~ "\.gz$" {
+ setenv.add-response-header = ( "Content-Encoding" => "x-gzip" )
+ compress.filetype = ()
+ mimetype.assign = ("" => "text/plain")
+}
+