how do i catch a bad gateway?

Igor Sysoev is at rambler-co.ru
Wed Oct 4 11:03:26 MSD 2006


On Wed, 4 Oct 2006, Jonathan Vanasco wrote:

> i'm running nginx 0.4.2
>
> i can't figure out how to catch a 502 bad gateway error when the host i 
> proxy_pass to is down
>
> nginx always reports a 404 not found
>
> i know nginx has a 502 in .4.2, because http://codemongers.com/ shows one :)
>
> can anyone offer a clue on the config line ?

Look the default configuration:

         # redirect server error pages to the static page /50x.html
         #
         error_page   500 502 503 504  /50x.html;
         location = /50x.html {
             root   html;
         }


Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list