Override error code returned by proxy_pass
Igor Sysoev
is at rambler-co.ru
Tue May 20 08:18:40 MSD 2008
On Mon, May 19, 2008 at 07:16:12PM -0700, Rt Ibmer wrote:
> I am using nginx as a load balancer. It passes requests to upstream servers using proxy_pass.
>
> In the event that one of the upstream servers returns a 404 with an error page, I would like to detect that situation and throw it out, and return my own 404 error as directed by the nginx error_page directive. Is this possible? And if so, how? Thanks!
http://wiki.codemongers.com/NginxHttpProxyModule#proxy_intercept_errors
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list