diff options
author | Mark Drobnak <mark.drobnak@gmail.com> | 2019-06-29 22:45:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-29 22:45:33 +0300 |
commit | 1a741f696eec2ee148fc59bc0dc98e862475e6ef (patch) | |
tree | be48bed548d68481d55fdeb4c1ccddc0a4ad2ec2 | |
parent | 1d43c0a2fa36ddc993db51b1751e26cbc8123fbf (diff) | |
parent | b5af125be6fcda97d4d0381e99c1edb0e5423606 (diff) |
Merge pull request #2816 from RamSet/hotfix/lighttpdMimev4.3.1
Fix lighttpd mime
-rw-r--r-- | advanced/lighttpd.conf.debian | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/advanced/lighttpd.conf.debian b/advanced/lighttpd.conf.debian index d9c4a110..47bdbee0 100644 --- a/advanced/lighttpd.conf.debian +++ b/advanced/lighttpd.conf.debian @@ -44,9 +44,18 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) compress.cache-dir = "/var/cache/lighttpd/compress/" compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" ) +mimetype.assign = ( ".png" => "image/png", + ".jpg" => "image/jpeg", + ".jpeg" => "image/jpeg", + ".html" => "text/html", + ".css" => "text/css; charset=utf-8", + ".js" => "application/javascript", + ".json" => "application/json", + ".txt" => "text/plain", + ".svg" => "image/svg+xml" ) + # default listening port for IPv6 falls back to the IPv4 port include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port -include_shell "/usr/share/lighttpd/create-mime.assign.pl" # Prevent Lighttpd from enabling Let's Encrypt SSL for every blocked domain #include_shell "/usr/share/lighttpd/include-conf-enabled.pl" |