From 5f7f5afec0fc515dbf32b7d714dc8f184631547e Mon Sep 17 00:00:00 2001 From: Robert Vineyard Date: Mon, 23 Mar 2015 11:48:33 -0400 Subject: [PATCH] Add 1x1 pixel Transparent GIF as 404 redirect --- advanced/lighttpd.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/lighttpd.conf b/advanced/lighttpd.conf index 3c23a2b9..bb62f020 100644 --- a/advanced/lighttpd.conf +++ b/advanced/lighttpd.conf @@ -14,6 +14,7 @@ server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.port = 80 +server.error-handler-404 = "/Transparent.gif" 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) $HTTP["host"] =~ ".*" { url.rewrite = (".*" => "pihole/index.html") -} \ No newline at end of file +}