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.