Welcome! Log In Create A New Profile

Advanced

Re: upstream и Host header

Daniel Podolsky
August 24, 2013 11:18AM
> Бэкэнду нужен правильный Host и, как я уже писал выше, у меня нет к нему
> доступа.
вам точо нужно проксирование, а не редирект 302?

если точно, то можно сколхозить схему с двойным проксированием

upstream cdn {
server 127.0.0.1:port1;
server 127.0.0.1:port2;
server 127.0.0.1:port3;
}

server {
listen 127.0.0.1:port1;
location / {
proxy_pass http://host1;
proxy_set_header Host host1;
}
}

server {
listen 127.0.0.1:port2;
location / {
proxy_pass http://host2;
proxy_set_header Host host2;
}
}

server {
listen 127.0.0.1:port3;
location / {
proxy_pass http://host3;
proxy_set_header Host host3;
}
}

location /test {
proxy_pass http://cdn;
}
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
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: 144
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