
shib4u at gmail
Aug 27, 2012, 10:42 AM
Post #2 of 2
(183 views)
Permalink
|
|
Re: Varnish client IP address twice in Apache logs
[In reply to]
|
|
On Mon, Aug 27, 2012 at 4:03 AM, Flat Circle <flatcircle [at] hotmail> 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 > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc > Check the LogFormat parameter in httpd.conf
|