Override error code returned by proxy_pass

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!

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs