Re: [squid-users] Want accel-mode squid to pass real IP to httpd

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 30 Sep 2009 10:34:26 +1200

On Tue, 29 Sep 2009 10:54:05 -0400, Roger Cornelius <rac_at_tenzing.org>
wrote:
> Apologies for what is probably a newbie question. I've searched the
> squid directives, archives of this list, the net, etc., and haven't
> discovered, or didn't recognize, the answer.
>
> I'm using squid 2.7.STABLE6 in accelerator mode. I used the basic
> accelerator config example at:
>
> http://wiki.squid-cache.org/ConfigExamples/Reverse/BasicAccelerator
>
> The httpd, which is running on the same machine, sees all requests as
> coming from the IP of the machine squid/apache are running on. How do I
> configure squid so httpd sees the IP of the actual machine making the
> request so I can do acl in httpd?

httpd needs to be configured to retrieve content from the X-Forwarded-For:
header in the HTTP request.
http://en.wikipedia.org/wiki/X-Forwarded-For
http://www.openinfo.co.uk/apache/index.html

Amos
Received on Tue Sep 29 2009 - 22:34:29 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 30 2009 - 12:00:03 MDT