I have 3 app servers which are handled by nginx
server.
upstream he {
server h1.abc.example.com;
server h2.abc.example.com;
}
How could I redirect requests request based on the some header value.Eg
abc-h1.abc.example.com
should go to serverh1.abc.example.com
def-h1.abc.example.com
should go to serverh2.abc.example.com
where -h1.abc.example.com
is going be same for all requests
Host
header), these are destination domain names, which can be implemented easier than a generic header matching.