Welcome! Log In Create A New Profile

Advanced

can i catch upstream output and display something else?

Posted by kitofers 
can i catch upstream output and display something else?
May 07, 2014 02:56AM
I have a dumb custom webserver behind nginx (that i am stuck with), that will occasionally go into a maintenance mode, where it is not able to serve its' normal content, but instead just sends "File not found" message in response body with HTTP code 200.

Unfortunately at the moment there is nothing I can do to make the upstream webserver to behave and send a 503, which I could then handle. Is there any way I can match against such upstream output to redirect it to a 503 page served by nginx?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
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