default page for all error codes?
Ronald Johnson
rj.1970 at googlemail.com
Tue Jun 7 23:57:41 MSD 2011
thx, yeah, guess i will have to revert to that, would have been nifty
just to do a * and thats it.
cheers,
On Tue, Jun 7, 2011 at 9:40 PM, António P. P. Almeida <appa at perusio.net> wrote:
> 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
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
More information about the nginx
mailing list