Riccardo,

you can try this: https://github.com/mpfr/httpd-plus

... and add something like that into your httpd.conf(5):

location not found "/*" {
        request rewrite "/404.html"
}

My original motivation for writing these add-ons was to get WordPress
running on httpd(8) which also requires handling of non-existent locations.

Best regards,
Matthias



On 2020-05-26 17:34, Riccardo Giuntoli wrote:
Hello there dear OpenBSD fellows.

I would like to change default 404 page in httpd(8), and I've seen in this
list that in past versions is hardcoded into the C sources.

Now it's possible in httpd.conf(5) ?

Very nice regards,

RG.


Reply via email to