Welcome! Log In Create A New Profile

Advanced

upstream for load balance

Abioy Sun
November 08, 2010 05:14AM
hi all,

I use nginx for load balance with the following configuration.

------------------------- configuration -------------------------
.... ...
upstream backend_pool {
server 192.168.1.2:8899;
server 192.168.1.3:8898;
server 192.168.1.4:8897;
}
.... ...
location / {
... ...
proxy_pass http://backend_pool;
}
------------------------- configuration -------------------------

The backend services require single sign-on on another host M, and jumping
back after SSO. But when I use the fastcgi parameter $host in the jump back
url, I get the string "backend_pool" and the jump back url turns out to be
something like "http://backend_pool?params=abcd&token=efghhttp://backend_pool/?params=abcd&token=efgh".
Clients
can not recognize the host "backend_pool", so the connection fails.

I try to dig out what happens via access log and found that the $host
parameter in access log of backend host turn out to be "backend_pool".

Is it a bug or a design for some certain purpose? How could I got the
correct host?

thx!

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

upstream for load balance

Abioy Sun November 08, 2010 05:14AM

Re: upstream for load balance

Francis Daly November 08, 2010 06:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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