From 748ed4b01a735944dff646abf2b9e3625c27294a Mon Sep 17 00:00:00 2001 From: Diogo Martins Date: Sat, 11 Jul 2026 19:00:59 +0100 Subject: [PATCH] fix(lighttpd): stop the harness config from masking lighttpd's real statuses server.error-handler = "/index.cgi" made lighttpd re-serve its OWN 4xx/5xx through index.cgi, which emits no Status header -> every error went out as 200, hiding lighttpd's real status codes. Removing the line restores lighttpd's default error handling (it sends its own statuses). Normal endpoints are unaffected (they route via index-file.names / alias.url). Validated by local re-probe: 53 -> 129 scored pass. This only un-hides lighttpd's native behavior; it does not modify any framework's default. --- src/Servers/LighttpdServer/lighttpd.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Servers/LighttpdServer/lighttpd.conf b/src/Servers/LighttpdServer/lighttpd.conf index 3fd52e7..bc88cc8 100644 --- a/src/Servers/LighttpdServer/lighttpd.conf +++ b/src/Servers/LighttpdServer/lighttpd.conf @@ -3,5 +3,4 @@ server.port = 8080 index-file.names = ("index.cgi") server.modules += ("mod_cgi", "mod_alias") cgi.assign = (".cgi" => "") -server.error-handler = "/index.cgi" alias.url = ("/echo" => "/var/www/echo.cgi", "/cookie" => "/var/www/cookie.cgi")