Hi,
I was hoping to proxy to multiple upstream servers on various ports from one nginx server listening on port 80.
I tried doing something like
if ($host ~* ^(mydomain.com|www.mydomain.com)$ ) {
proxy_pass http://mydomain_frontend_cluster/;
}
But of course that doesn't work inside an if statement. Is there anyway to proxy based on hostname, and if it is invalid or non existent, show some error page?
Thanks very much
-warren