httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rasmus Lerdorf <ras...@apache.org>
Subject RE: How can I resolve this problem ?
Date Mon, 19 Aug 2002 14:08:12 GMT
Yes, HTTP_X_FORWARDED_FOR is a Squid thing.

-Rasmus

On Mon, 19 Aug 2002, Nelson, Robert D. wrote:

> Hello:
>
> I did a little research on this and I can't find "HTTP_X_FORWARDED_FOR" in
> any standard HTTP documentation.  I found "Via" which would return the a few
> interesting pieces of information about the server that acted as the proxy,
> but not about the client machine.  I also found "Max-Forwards" which would
> be part of the client request headers that tell proxies the maximum number
> of jumps the request is willing to take.  This, of course, would not give
> you any good information about the client.  There is also some interesting
> information on an HTTP method called "TRACE" that does exactly what you are
> doing.
>
> I don't know Squid at all so this may be something that it attaches to the
> HTTP headers before passing the request on.  If this is the case, please let
> me know.  I have a few systems where I would like to do something similar to
> what you are attempting.
>
> The way that I take care of this is to use the logging abilities of the
> front-end server.  These logs should produce lines that contain proper
> information on the incoming request.
>
> If you are sure about this "HTTP_X_FORWARDED_FOR" thing, I agree with Dirk
> that you would need to drop it in the log line with "%{X-Forwarded-For}i".
>
> Let me know what happens with this.  As I said, I'd love to do what you are
> attempting myself.
>
>  ~ Robert
>
>
> -----Original Message-----
> From: zhuml [mailto:zhuml@pub.shtu.edu.cn]
> Sent: Sunday, August 18, 2002 5:46 PM
> To: users@httpd.apache.org
> Subject: How can I resolve this problem ?
>
>
>
> Hello,
>
> 	I chose Apache 1.3.26 as my web-server running on Port 81. Instead,
> I use
> Squid running on Port 80 as a reverse proxy pointing Port 81.
>     The problem came. IP address recorded in apache log files was the same:
> [127.0.0.1] . Obviously, it should be 127.0.0.1 , because all the web
> requests sent to apache server were from Squid.
>     I know that is a key-word in HTTP header -- HTTP_X_FORWARDED_FOR, it
> reocords the real IP address which I really need to log in apache log
> files.
>     How can I configure apache to log the real IP address ?
>
>     Please help me :)
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message