Forum: NGINX undocumented error_page bug/feature/behavior

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3fc448a0368821b51a9f7e2781a8b7a6?d=identicon&s=25 Jonathan Vanasco (Guest)
on 2009-01-07 00:54
(Received via mailing list)
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.
561c2fb6d0c72e0c7bc52b263c7d56c3?d=identicon&s=25 Merlin (Guest)
on 2009-01-07 22:38
(Received via mailing list)
I take it error_page.conf resets the error_page for 503?  What happens
you try with something like "error_page NNN = @location;"?
7ce625ba598c1198061bdf1b1a1353a5?d=identicon&s=25 dennis cao (Guest)
on 2009-01-08 03:32
(Received via mailing list)
HI  everybody
  Happy New Year!
  do nginx has the modules like apache's mod_cband ?
   i want to use it in a virtual host
This topic is locked and can not be replied to.