Welcome! Log In Create A New Profile

Advanced

Return Specific Error Page in NGinX when all the upstream servers are marked down

May 05, 2017 04:59AM
I have an upstream block as follows

upstream sample{
server abc1.example.com down;
server abd2.example.com down;
}

Currently I get a 502 error. In this special case where I receive a 502 and all upstream servers are down I would like a receive a specific error page as temporarily unavailable.

How can i achieve that?
Subject Author Posted

Return Specific Error Page in NGinX when all the upstream servers are marked down

shivramg94 May 05, 2017 04:59AM

Re: Return Specific Error Page in NGinX when all the upstream servers are marked down

Aleksandar Lazic May 06, 2017 06:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready