Skip to content

Commit

Permalink
Merge pull request pi-hole#2816 from RamSet/hotfix/lighttpdMime
Browse files Browse the repository at this point in the history
Fix lighttpd mime
  • Loading branch information
AzureMarker authored Jun 29, 2019
2 parents 1d43c0a + b5af125 commit 1a741f6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion advanced/lighttpd.conf.debian
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1a741f6

Please sign in to comment.