From ecc49318f06e7bbfa868053904f736737f109ac6 Mon Sep 17 00:00:00 2001 From: RamSet Date: Mon, 24 Jun 2019 12:38:03 -0600 Subject: [PATCH 1/2] Fixed MIME related issue present in lighttpd/1.4.53 Signed-off-by: RamSet --- advanced/lighttpd.conf.debian | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/advanced/lighttpd.conf.debian b/advanced/lighttpd.conf.debian index d9c4a110..73833caa 100644 --- a/advanced/lighttpd.conf.debian +++ b/advanced/lighttpd.conf.debian @@ -44,9 +44,19 @@ 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" +#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" From b5af125be6fcda97d4d0381e99c1edb0e5423606 Mon Sep 17 00:00:00 2001 From: RamSet Date: Tue, 25 Jun 2019 10:06:37 -0600 Subject: [PATCH 2/2] Removed line Signed-off-by: RamSet --- advanced/lighttpd.conf.debian | 1 - 1 file changed, 1 deletion(-) diff --git a/advanced/lighttpd.conf.debian b/advanced/lighttpd.conf.debian index 73833caa..47bdbee0 100644 --- a/advanced/lighttpd.conf.debian +++ b/advanced/lighttpd.conf.debian @@ -56,7 +56,6 @@ mimetype.assign = ( ".png" => "image/png", # 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"