Welcome! Log In Create A New Profile

Advanced

Re: no live upstreams while connecting to upstream

Eugene Toropov
January 09, 2019 02:28PM
Понятно, спасибо.

> On 9 Jan 2019, at 21:43, Alexey via nginx-ru <nginx-ru@nginx.org> wrote:
>
> 09.01.2019 0:47, Eugene Toropov пишет:
>> proxy_http_version 1.1; и proxy_set_header Connection '' помогли, по крайней мере 502 больше не вижу. Уточните, пожалуйста, можно ли еще как-то не прописывать явно “proxy_set_header Host tratutu” в конфиге, чтоб он правильный хост передавал на апстрим вместо tratata?
>
> Ну можно, например,
> proxy_set_header Host $host;
> тогда дальше поедет тоже имя, что передано клиентом.
>
> Вообще никто не мешает вместо
>
> proxy_pass https://www.domain.ru;
>
> написать
>
> upstream www.domain.ru {
> server www.domain.ru:443 ...;
>
> }
> и строку proxy_pass вообще не менять, тогда ничего в плане переданных имен не поменяется.
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 06:36AM

Re: no live upstreams while connecting to upstream

pnz.stalker--- via nginx-ru January 08, 2019 08:06AM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 01:02PM

Re: no live upstreams while connecting to upstream

pnz.stalker--- via nginx-ru January 08, 2019 01:20PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 01:30PM

Re: no live upstreams while connecting to upstream

pnz.stalker--- via nginx-ru January 08, 2019 01:46PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 02:02PM

Re: no live upstreams while connecting to upstream

Alexey via nginx-ru January 08, 2019 03:12PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 03:42PM

Re: no live upstreams while connecting to upstream

Alexey via nginx-ru January 08, 2019 03:50PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 03:52PM

Re: no live upstreams while connecting to upstream

Alexey via nginx-ru January 08, 2019 03:56PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 04:10PM

Re: no live upstreams while connecting to upstream

Alexey via nginx-ru January 08, 2019 04:30PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 04:34PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 04:48PM

Re: no live upstreams while connecting to upstream

Alexey via nginx-ru January 09, 2019 01:44PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 09, 2019 02:28PM

Re: no live upstreams while connecting to upstream

Eugene Toropov January 08, 2019 04:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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