duplicate upstream server marked as down
halfpastjohn
nginx-forum at forum.nginx.org
Tue Oct 3 18:00:39 UTC 2017
Can i have two, identical, server hostnames in an upstream, with one of them
marked as "down"? Like this:
resolver 10.0.0.8;
upstream backend {
server backend.example.com down resolve;
server backend.example.com/api/v2/;
}
The reason being is that i need to route to the second one (with the longer
path), but i also need to resolve the hostname. Unfortunately it won't
resolve when there is additional pathing tacked onto the end. So, i'm hoping
that this will allow the hostname to be resolved but only send traffic to
the full path.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276665,276665#msg-276665
More information about the nginx
mailing list