Welcome! Log In Create A New Profile

Advanced

upstream и Host header

August 23, 2013 11:57PM
Здравствуйте!

Столкнулся с проблемой передачи Host заголовка серверу из upstream секции. Простая конфигурация:

nginx-1.5.3

upstream cdn {
server host1;
server host2;
server host3;
}

location /test {
proxy_pass http://cdn;
}


При выполнения запроса проксируемому серверу передается Host: cdn вместо Host: host*. Т.е. похоже в $proxy_host попадает название группы, а не сервер из нее. Это нормально? При явном указании proxy_pass http://host1 таких проблем нет.


С уважением,
Александр
Subject Author Posted

upstream и Host header

incubus August 23, 2013 11:57PM

Re: upstream и Host header

Илья Шипицин August 24, 2013 01:12AM

Re: upstream и Host header

incubus August 24, 2013 01:20AM

Re: upstream и Host header

Artem Gelun August 24, 2013 01:54AM

Re: upstream и Host header

incubus August 24, 2013 01:58AM

Re: upstream и Host header

Gelun, Artem August 24, 2013 02:20AM

Re: upstream и Host header

incubus August 24, 2013 02:37AM

Re: upstream и Host header

Илья Шипицин August 24, 2013 05:18AM

Re: upstream и Host header

incubus August 24, 2013 11:03AM

Re: upstream и Host header

Daniel Podolsky August 24, 2013 11:18AM

Re: upstream и Host header

Alex Vorona August 25, 2013 12:24PM

Re: upstream и Host header

incubus August 25, 2013 08:38PM

Re: upstream и Host header

Валентин Бартенев August 26, 2013 07:42AM

Re: upstream и Host header

incubus August 27, 2013 10:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
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