upstream for load balance
Abioy Sun
abioy.sun at gmail.com
Mon Nov 8 13:04:32 MSK 2010
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=efgh<http://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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101108/05283f3f/attachment.html>
More information about the nginx
mailing list