António P. P. Almeida
June 07, 2011 03:42PM
On 7 Jun 2011 19h55 WEST, rj.1970@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


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

default page for all error codes?

Roy June 07, 2011 02:56PM

Re: default page for all error codes?

António P. P. Almeida June 07, 2011 03:42PM

Re: default page for all error codes?

Roy June 07, 2011 03:58PM

Re: default page for all error codes?

gregr401 June 07, 2011 06:12PM

Re: default page for all error codes?

Roy June 09, 2011 02:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 263
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready