Unfortunately, that does not work per previous posts, that only shows the front facing web server address...<div><br></div><div>We have a work around, thanks.</div><div><br></div><div>A small configuration file on each server can be read by the php code to identify which machine it is.<br>
<br><div class="gmail_quote">On Tue, Oct 12, 2010 at 2:59 PM, Ian Hobson <span dir="ltr">&lt;<a href="mailto:ian@ianhobson.co.uk">ian@ianhobson.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 12/10/2010 02:41, Ilan Berkner wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
We&#39;re doing some profiling and one of the parameters we&#39;d like to get is<br>
the IP address of the fastcgi (in this case php-fpm) server that<br>
processed the request.  PHP $_SERVER[&#39;server_addr&#39;] returns the external<br>
address of the nginx server per our fastcgi configuration:<br>
<br>
fastcgi_param  SERVER_ADDR        $server_addr;<br>
<br>
Is this correct behavior? is there a way to get the local address of the<br>
server processing the php request?<br>
<br>
</blockquote></div></div>
You can obtain the IP address of the machine running the script with<br>
<br>
$_server[&#39;SERVER_ADDR&#39;]<br>
<br>
Regards<br><font color="#888888">
<br>
Ian</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>