miniserve icon indicating copy to clipboard operation
miniserve copied to clipboard

[Feature request] Serving custom html only for 404s

Open Fukitsu opened this issue 2 years ago • 2 comments

Right now if you specify a custom index file it will serve that for all paths. I'd like to be able to serve a custom index.html only for when an error occurs (404 in this case)

Fukitsu avatar Mar 11 '22 21:03 Fukitsu

Have you tried --spa option?

aliemjay avatar Mar 13 '22 13:03 aliemjay

Yes, but that servers the index.html for all routes instead of the default listing. I'd like to serve only a custom html only for when a 404 occurrs

Fukitsu avatar Mar 15 '22 05:03 Fukitsu