How to make nginx return response body for 4xx and 5xx?

Looks like nginx removes response body when HTTP code is 4xx/5xx.

Is there a way to make nginx proxy the original response body?

Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,263391,263391#msg-263391

Hello!

On Wed, Dec 09, 2015 at 10:57:08AM -0500, ibmed wrote:

Looks like nginx removes response body when HTTP code is 4xx/5xx.

Is there a way to make nginx proxy the original response body?

This is what nginx does by default. If you see response bodies
removed in your setup, you’ve probably explicitly asked nginx to
do so using the proxy_intercept_errors directive. See
http://nginx.org/r/proxy_intercept_errors for details.


Maxim D.
http://nginx.org/

Sorry to bother everyone. Nginx proxies everything just fine. The issue
was
at the upstream side.

Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,263391,263406#msg-263406

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