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
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
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
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
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