I have the following CNAMES xyz.abc.com, xyz-1.abc.com and xyz-2.abc.com. server body looks like this
server
{
listen 80 default_server deferred;
listen [::]:80;
server_name xyz.abc.com;
location / {
proxy_pass http://example.com;
}
}
All requests are going through and being redirected even though the server name is not in there.