Welcome! Log In Create A New Profile

Advanced

Re: upstream server does not match virtual host

March 16, 2016 07:33AM
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 $proxy_host;

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

Regards
Subject Author Posted

upstream server does not match virtual host

miky March 15, 2016 08:20PM

Re: upstream server does not match virtual host

Francis Daly March 16, 2016 04:36AM

Re: upstream server does not match virtual host

miky March 16, 2016 07:33AM

Re: upstream server does not match virtual host

Francis Daly March 16, 2016 12:54PM

Re: upstream server does not match virtual host - SOLVED

miky March 16, 2016 07:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready