Passing through client IP address to server

Kenneth Rørvik Kenneth.Rorvik at
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
> 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

More information about the varnish-misc mailing list