Varnish client IP address twice in Apache logs

Shibashish shib4u at gmail.com
Mon Aug 27 19:42:05 CEST 2012


On Mon, Aug 27, 2012 at 4:03 AM, Flat Circle <flatcircle at hotmail.com> wrote:

> 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.
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>


Check the LogFormat parameter in httpd.conf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120827/23be5e54/attachment.html>


More information about the varnish-misc mailing list