Welcome! Log In Create A New Profile

Advanced

Re: Host header in upstream requests

Dmitry Pryadko
March 16, 2015 04:36AM
I don't think that something other than manual address-hostname pairs
maintainance can help you

map $upstream_addr $upstream_hostname {
10.0.0.1:80 hostname1;
10.0.0.2:80 hostname2;
}
...
proxy_set_header Host $upstream_hostname;

15.03.15 17:19, sapientcloud пишет:
> Already tried $upstream_addr which unfortunately gives IP:port instead of
> hostname:port. My upstream needs hostname listed in conf instead of IP
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,257252,257258#msg-257258
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

--
br,
Dmitry Pryadko

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

Host header in upstream requests

Sapient Nitro March 14, 2015 05:14PM

Re: Host header in upstream requests

B.R. March 14, 2015 08:02PM

Re: Host header in upstream requests

sapientcloud March 15, 2015 10:19AM

Re: Host header in upstream requests

Dmitry Pryadko March 16, 2015 04:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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