Welcome! Log In Create A New Profile

Advanced

Pass same exception thrown by upstream server to client with Nginx

Posted by aanchalj 
Pass same exception thrown by upstream server to client with Nginx
June 11, 2016 06:53AM
Is there any way in which we can pass the same exception thrown by the upstream server to the clean where Nginx is acting as a Reverse proxy? e.g. I am using Nginx as Reverse proxy in front of some upstream servers and for some reason, an upstream server is returning a ConnectionTimeOut exception, but my client receives 504 GateWayTimeout exception. So my question is can we directly pass the upstream exception to the client so that client receives connection timeout exception instead of 504 GateWayTime out exception.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready