forwarding original IP address
Davies Matt J A (LCSS)
mjdavies at glam.ac.uk
Mon Jul 19 18:46:14 CEST 2010
Hi everyone
This is probably very easy but I thought I'd check I've got this right first.
On my web server, I want to display the original IP address of the client, not the IP of the varnish server, in the error logs from the web server.
I've done some reading and found this example in the docs
sub vcl_recv {
# Add a unique header containing the client address
remove req.http.X-Forwarded-For;
set req.http.X-Forwarded-For = req.http.rlnclientipaddr;
Is that all I need to do?
Any help, greatly appreciated.
More information about the varnish-misc
mailing list