Welcome! Log In Create A New Profile

Advanced

Re: upstream server does not match virtual host

Francis Daly
March 16, 2016 12:54PM
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 you want

proxy_set_header Host virt1;

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

Easiest is to say "in the same {}-block as the proxy_pass".

The order of the two within that block does not matter.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready