From 73221614e02570e9918257ef36db87405c47cbce Mon Sep 17 00:00:00 2001 From: Robert Vineyard Date: Mon, 23 Mar 2015 11:43:30 -0400 Subject: [PATCH] Add 404 redirect to 1x1 Transparent GIF Returning a 1x1 Transparent GIF instead of an HTTP 404 error is cleaner and faster from a browser UI/UX perspective. --- lighttpd.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/lighttpd.conf b/lighttpd.conf index 16e4c8a2..992728bb 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -15,6 +15,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" )