Re: upstream server does not match virtual host

2016-03-19 Thread miky
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 $p

Re: upstream server does not match virtual host - SOLVED

2016-03-19 Thread miky
Francis, Thank you very much, your help is always appreciated. It didn't work in the first place because I also had an include proxy params statement which overrided the setting you indicated. Retesting from a very basic configuration proved the solution you offered worked. At the end I kept th

Re: upstream server does not match virtual host

2016-03-19 Thread Francis Daly
On Wed, Mar 16, 2016 at 07:33:45AM -0400, miky wrote: Hi there, > If I understand correctly the documentation I should add > proxy_set_header Host $host; What Host: header is sent by the browser to the upstream web server when things work? >From the original mail, that seems to be "virt1". So

Re: upstream server does not match virtual host

2016-03-16 Thread Francis Daly
On Tue, Mar 15, 2016 at 08:20:25PM -0400, miky wrote: Hi there, > I use a nginx server in front of it as a reverse proxy and use a virtual > host. When I access http://portal, I want it to display the page as if it > was http://virt1 http://nginx.org/r/proxy_set_header f -- Francis Dal

upstream server does not match virtual host

2016-03-15 Thread miky
Hello, I have a web server (nginx, iis, apache, whatever) on which I access: http://1.1.1.1 => displays default page http://virt1 => displays virtual host 1 (ping virt 1 = 1.1.1.1) When I access the url virt1 the page of the corresponding virtual host which is different from when I access the url