Passing through client IP address to server

Kenneth Rørvik Kenneth.Rorvik at hio.no
Fri Jun 8 07:38:01 CEST 2007


ADOFMS Admin, SteveOC wrote:
> Im running both Varnish and my LAMP application on the same machine, so
> all requests hitting the apache server now have an incoming IP address
> of 127.0.0.1.
> 
> Is there something that I can do in VCL to set the client IP address
> that apache sees as being the real client IP address ? 
> 
> My PHP app has a requirement to record both client IP address,
> timestamp, and browser version for all accesses to the system, so I
> eventually need to make this happen.

Take a look at the X-Forwarded-for header.

-- 
Kenneth Rørvik, IT HiO
Tlf 22 45 20 83
Kenneth.Rorvik at hio.no



More information about the varnish-misc mailing list