default page for all error codes?
António P. P. Almeida
appa at perusio.net
Tue Jun 7 23:40:39 MSD 2011
On 7 Jun 2011 19h55 WEST, rj.1970 at googlemail.com wrote:
> hi,
>
> is it possible to define one error page for all errors?
>
> e.g.
> instead of having
> error_page 404 = /myerrorpage.html
> could i do something along the lines of
> error_page * = /myerrorpage.html
I don't thing you can do that. AFAIK you have to enumerate all HTTP error
status codes you want to be handled.
error_page 400 401 402 403 404 = /myerrorpage.html;
Add as many status codes as you need/want.
--- appa
More information about the nginx
mailing list