how do i catch a bad gateway?

Igor Sysoev is at rambler-co.ru
Thu Oct 5 19:03:57 MSD 2006


On Thu, 5 Oct 2006, Jonathan Vanasco wrote:

> On Oct 5, 2006, at 1:19 AM, Cliff Wells wrote:
>
>>> i know nginx has a 502 in .4.2, because http://codemongers.com/ shows
>>> one :)
>> 
>> Hah, you scared me for a second.  For the record, it's
>> http://wiki.codemongers.com
>
> the wiki is wiki.codemongers.com
>
> there's a 502 code on codemongers.com
>
> can someone clarify this for me...
>
> 	do all errors go to 404 , unless you catch it and specify a different 
> error code for that page?

No, nginx shows page specified by error_page or its own.

> even with the 502 code, i'm getting a 404 when my proxy is down

Could do build nginx --with-debug and set in nginx.conf:

events {
     debug_connection  your-ip-address;
     ...
}

Then do a request and send me debug log.


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





More information about the nginx mailing list