You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
URLs with a double-slash prefix (e.g. //lala.php, //wp-admin/images/wp-conflg.php) return HTTP 500 instead of 404. These are all bot/attack probes but they inflate the 5xx error count in logs and monitoring.
Evidence
From production logs on melvin.me (last 7 days):
~2,130 total 5xx responses
100% are double-slash attack probe URLs — zero real 5xx errors
These should return 404 (not found), not 500 (server error).
Likely cause
The double-slash prefix (//) is probably causing a path resolution error in the resource handler or filesystem layer, resulting in an uncaught exception rather than a clean "not found" response.
Impact
Low severity — only affects attack probes, no real user impact
Noisy 5xx metrics in monitoring/analytics
Simple fix: normalize or reject double-slash paths early in the request pipeline
Activity
test: save/restore DATA_ROOT around urlToPath block to prevent test-o…
url: strip all leading slashes — fixes 500 on //foo bot probes (#131) (…
git handler: collapse multi-slash in URL before forwarding to http-ba…