Skip to content

Commit 1a741f6

Browse files
authored
Merge pull request pi-hole#2816 from RamSet/hotfix/lighttpdMime
Fix lighttpd mime
2 parents 1d43c0a + b5af125 commit 1a741f6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: advanced/lighttpd.conf.debian

+10-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,18 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
4444
compress.cache-dir = "/var/cache/lighttpd/compress/"
4545
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
4646

47+
mimetype.assign = ( ".png" => "image/png",
48+
".jpg" => "image/jpeg",
49+
".jpeg" => "image/jpeg",
50+
".html" => "text/html",
51+
".css" => "text/css; charset=utf-8",
52+
".js" => "application/javascript",
53+
".json" => "application/json",
54+
".txt" => "text/plain",
55+
".svg" => "image/svg+xml" )
56+
4757
# default listening port for IPv6 falls back to the IPv4 port
4858
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
49-
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
5059

5160
# Prevent Lighttpd from enabling Let's Encrypt SSL for every blocked domain
5261
#include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

0 commit comments

Comments
 (0)