diff options
Diffstat (limited to 'tempest-lighttpd-static/lighttpd.conf')
-rw-r--r-- | tempest-lighttpd-static/lighttpd.conf | 33 |
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") +} + |