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.
This commit is contained in:
Robert Vineyard 2015-03-23 11:43:30 -04:00
parent 5d322f2dd2
commit 73221614e0

View file

@ -15,6 +15,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" )