undocumented error_page bug/feature/behavior

Merlin merlin at mahalo.com
Thu Jan 8 00:26:02 MSK 2009


I take it error_page.conf resets the error_page for 503?  What happens if
you try with something like "error_page NNN = @location;"?

On Tue, Jan 6, 2009 at 3:44 PM, Jonathan Vanasco <nginx at 2xlp.com> wrote:

> i just discovered this after 2 hours of testing
>
>        If you define error_page for a server block multiple times, only the
>  first one will take, subsequent ones will not override
>
>        That means if you store your error pages in a macro, to override it
> would be:
>
>                error_page 503 /503.error
>                include /usr/local/nginx/_macros/error_page.conf;
>
>        and not
>
>                include /usr/local/nginx/_macros/error_page.conf;
>                error_page 503 /503.error
>
> I'm not sure if this was intended or not ( personally , i don't like it ).
>
> but I wanted to share this with others.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090107/79515c68/attachment.html>


More information about the nginx mailing list