Hi guys.<br><br>I have a one frontend server with nginx, and 5 backends with PHP-FPM, I do a FastCGI pass and all works.<br><br>Now, I need add other fronted, balanced by hardware base balancer.<br><br>My problem is, i need track the remote IP address, is very very important, in the fastcgi_params file, actualu REMOTE_ADDR param is set as $remote_addr.<br>
<br>The balancer sendme a header called x_cluster_client_ip (yes, is ungly), i recive this in nginx as $http_x_cluster_client_ip, but if I replace this param and reload/restart nginx, before DNS change at the new balancer, i don't get the x_cluster_client_ip value and i don't can't know the ip.<br>
<br><span id="result_box" class="short_text" lang="en"><span class="hps">there is</span> <span class="hps">some form of</span></span><span id="result_box" class="short_text" lang="en"><span class="hps"></span></span> define REMOTE_ADDR as $http_x_cluster_client_ip if exists and $remote_addr else?<br clear="all">
<br>-- <br>El Tio ~ Programador, hacker y filósofo<br>web: <a href="http://blog.exodica.com.ar" target="_blank">http://blog.exodica.com.ar</a><br>Linked'in: <a href="http://www.linkedin.com/in/ogentilezza" target="_blank">http://www.linkedin.com/in/ogentilezza</a><br>
Twitter: @exos, Indeti.ca: @exos<br>Tels: [+54 11] 638-LINUX (54689) - [+54 9 11] 6799-4797<br><br>-----BEGIN GEEK CODE BLOCK-----<br>Version: 3.1<br>GCS/IT d-- s:++ a- C+++$ UBL+++$ P(-) L+++$ !E--- W+++$ !N !o K-? !w--- !O !M-- V? PS+++@ !PE Y+(++) PGP++ !t--- !5 X++ R(+) tv--? b- DI D-- G e@ h>++ r+++(-) y+++>+++++<br>
------END GEEK CODE BLOCK------ <br>