Re: [squid-users] hostname passthrough with reverse proxy?

From: Amos Jeffries <squid3@dont-contact.us>
Date: Fri, 9 Nov 2007 17:06:51 +1300 (NZDT)

>
> i've got squid set up as an accelerator in front of multiple apache
> webservers.
>
> the apache servers are logging each request as coming from the squid
> server - there's no information about the client's hostname. i suppose i
> can use squid's access.log to get around that.
>
> however, php applications are also logging each user as coming from the
> squid server. it would be nice to log the actual hostname or IP address.
>
> is there anyway with squid and apache to pass through or otherwise spoof
> REMOTE_HOST so that it contains the client's IP address?
>

Client details are passed thru by default unless turned off.
They appear in the X-Forwarded-For: header instead of the usual Client-*:
headers.

Amos
Received on Thu Nov 08 2007 - 21:06:54 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST