<div>hi all,</div>
<div> </div>
<div>I use nginx for load balance with the following configuration.</div>
<div> </div>
<div>------------------------- configuration -------------------------</div>
<div>... ...</div>
<div>upstream backend_pool {</div>
<div> server <a href="http://192.168.1.2:8899">192.168.1.2:8899</a>;</div>
<div> server <a href="http://192.168.1.3:8898">192.168.1.3:8898</a>;</div>
<div> server <a href="http://192.168.1.4:8897">192.168.1.4:8897</a>;<br>}</div>
<div>... ...</div>
<div>location / {</div>
<div> ... ...</div>
<div> proxy_pass <a href="http://backend_pool/">http://backend_pool</a>;<br>}</div>
<div>------------------------- configuration -------------------------</div>
<div> </div>
<div>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 &quot;backend_pool&quot; and the jump back url turns out to be something like &quot;<a href="http://backend_pool/?params=abcd&amp;token=efgh">http://backend_pool?params=abcd&amp;token=efgh</a>&quot;.  Clients can not recognize the host &quot;backend_pool&quot;, so the connection fails.</div>

<div> </div>
<div>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 &quot;backend_pool&quot;.</div>
<div> </div>
<div>Is it a bug or a design for some certain purpose? How could I got the correct host? </div>
<div> </div>
<div>thx!</div>
<div> </div>
<div>--</div>
<div>Abioy</div>
<div> </div>
<div> </div>