Forum: NGINX undocumented error_page bug/feature/behavior

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jonathan V. (Guest)
on 2009-01-07 01: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.
Merlin (Guest)
on 2009-01-07 23:38
(Received via mailing list)
I take it error_page.conf resets the error_page for 503?  What happens
if
you try with something like "error_page NNN = @location;"?
dennis cao (Guest)
on 2009-01-08 04: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.