2009/1/7 Mehmet ÇELiK <root_at_justunix.org>:
> Hello,
>
> I think you understand me wrong or you did not read all of my mail.
> The problem is that:
> I want to change the place of the value at X_FORWARDED_FOR.with REMOTE ADDR.
> I mean,
> when web server looked at to HEADER, It can see the Client IP Address, It
> does not see REVERSE. And I want to make this activite as REMOTE_ADDR.
>
> I want to see the informations as the below:
>
> PHP Code:
> <?php
> echo "X_Forward = ".$_SERVER['HTTP_X_FORWARDED_FOR'];
> echo "<br>Remote_Addr = ".$_SERVER['REMOTE_ADDR'];
> ?>
>
> Web Servers says that:
> X-Forwarded-For = Client IP Address
> Remote Address = Reverse Proxy IP Address
>
Ok I got your meanings.
If PHP can get remote address by $_SERVER['REMOTE_ADDR'], then it
should always get it by this way, nothing to do with Squid. Also
X-Forwarded-For just behaves well under your case.
Ralf.
Received on Wed Jan 07 2009 - 15:13:39 MST
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 12:00:02 MST