Varnish client IP address twice in Apache logs

Flat Circle flatcircle at hotmail.com
Mon Aug 27 13:03:19 CEST 2012


Hello

I just added 

sub vcl_recv {
  # Add a unique header containing the client address
  remove req.http.X-Forwarded-For;
  set    req.http.X-Forwarded-For = client.ip;
  # [...]
}to my configuration to see the client IP in my Apache logs. So far so good...

However, when view my Apache log file, I see the IP address twice.

10.4.1.37, 10.4.1.37 - - [27/Aug/2012:12:09:00 +0200] "GET /sites/dev.local/themes/test/favicon.ico HTTP/1.1" 200 1406 "

How can I prevent that the IP address will appear once?

Regards.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120827/892635db/attachment.html>


More information about the varnish-misc mailing list