Add 1x1 pixel Transparent GIF as 404 redirect

This commit is contained in:
Robert Vineyard 2015-03-23 11:48:33 -04:00
parent 1630007579
commit 5f7f5afec0

View file

@ -14,6 +14,7 @@ server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data" server.username = "www-data"
server.groupname = "www-data" server.groupname = "www-data"
server.port = 80 server.port = 80
server.error-handler-404 = "/Transparent.gif"
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" ) index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
@ -32,4 +33,4 @@ include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
# This should be a blank file (for speed) # This should be a blank file (for speed)
$HTTP["host"] =~ ".*" { $HTTP["host"] =~ ".*" {
url.rewrite = (".*" => "pihole/index.html") url.rewrite = (".*" => "pihole/index.html")
} }