upstream server does not match virtual host

miky nginx-forum at
Wed Mar 16 11:33:45 UTC 2016

Thank you Francis for pointing the right direction.

If I understand correctly the documentation I should add
proxy_set_header Host $host;

considering I had the upstream server defined by: upstream webservers {
server virt1:80; }

I tried it but had no luck with it, I also tried $http_host; and

Also should I place this proxy_set_header before the proxy_pass ? I think
yes, could you confirm this ?


Posted at Nginx Forum:,265370,265391#msg-265391

More information about the nginx mailing list