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
When I change it:
Web Servers says that:
X-Forwarded-For = NULL
Remote Address = Client IP Address
It's possible ????
----- Original Message -----
From: "Ralf Peng" <ralf.peng@xxxxxxxxx>
To: "Mehmet ÇELiK" <root@xxxxxxxxxxxx>
Cc: <squid-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 07, 2009 2:06 PM
Subject: Re: HTTP Header
2009/1/7 Mehmet ÇELiK <root@xxxxxxxxxxxx>:
Hi all,
I am using Squid as Reverse Proxy for my Web Servers. Client IP Address
is
directing to Web Servers with X_FORWARDED_FOR. But, I want to write
Client
IP Address to Remote_Address..
Yes you can.
If I remember that correctly, you should be able to modify
src/HttpHeader.cc and change the string of 'X_FORWARDED_FOR' to what
you wanted then recomplie and install Squid.
Ralf.
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.3/1879 - Release Date: 06.01.2009
17:16