Re: Accel with IP pass-through

From: Paul Phillips <paulp@dont-contact.us>
Date: Mon, 28 Sep 1998 16:04:54 -0700 (PDT)

On Mon, 28 Sep 1998, Numa wrote:

> I'm running squid in accel mode for numerous virtual servers on one
> machine, with Apache on a different port. This works fine, however in
> the apache logs, all the requests now come from the IP address of the
> squid server. What I'd like to have happen is have the IP
> address/hostname of the requesting host passed through the squid
> server and logged by apache. Is there any easy way to do this? If not,
> what's the hard way? (And please tell me there is a way).

The easy way and the hard way are one and the same! Patch apache.
Attached is what I did, it applies to http_protocol.c, apache v. 1.3.2.
Suggest you modify the IPs to suit your own circumstances if you want
to use it.

-- 
Paul Phillips      | You are already removed!
Cat Juggler        | 
<paulp@go2net.com> | 
+1 206 447 1595    |--------* http://www.go2net.com/people/paulp/ *--------

Received on Mon Sep 28 1998 - 16:06:32 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:12 MST