Mailing List Archive

how to leave logging real ip address?
Hello, all.


After I have set varnish based cache, all ip address which is logged at
realserver, are only cache ip address.
I guess this is a normal, but is there any method or way that leaving real
ip address at log file?


Thanks for your help in advance.

_________________________________________________________________
????? ??? ?? ????? http://phonebuddy.msn.co.kr/
how to leave logging real ip address? [ In reply to ]
You probably want to log the X-Forwarded-for header on the http server.

On 10/17/07, Monty Ree <chulmin2 at hotmail.com> wrote:
> Hello, all.
>
>
> After I have set varnish based cache, all ip address which is logged at
> realserver, are only cache ip address.
> I guess this is a normal, but is there any method or way that leaving real
> ip address at log file?
>
>
> Thanks for your help in advance.
>
> _________________________________________________________________
> ????? ??? ?? ????? http://phonebuddy.msn.co.kr/
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
how to leave logging real ip address? [ In reply to ]
there is module mod_rpaf for Apache. you might want to take a look at it.
http://stderr.net/apache/rpaf/

--
janis

On Wednesday 17 October 2007 07:42, Luke Macpherson wrote:
> You probably want to log the X-Forwarded-for header on the http server.
>
> On 10/17/07, Monty Ree <chulmin2 at hotmail.com> wrote:
> > Hello, all.
> >
> >
> > After I have set varnish based cache, all ip address which is logged at
> > realserver, are only cache ip address.
> > I guess this is a normal, but is there any method or way that leaving
> > real ip address at log file?
> >
> >
> > Thanks for your help in advance.
> >
> > _________________________________________________________________
> > ????? ??? ?? ????? http://phonebuddy.msn.co.kr/
> >
> > _______________________________________________
> > varnish-misc mailing list
> > varnish-misc at projects.linpro.no
> > http://projects.linpro.no/mailman/listinfo/varnish-misc
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
how to leave logging real ip address? [ In reply to ]
"Monty Ree" <chulmin2 at hotmail.com> writes:
> After I have set varnish based cache, all ip address which is logged
> at realserver, are only cache ip address. I guess this is a normal,
> but is there any method or way that leaving real ip address at log
> file?

Use the Varnish log instead. Remember, your backend will only log
cache misses, so backend logs are useless for traffic stats.

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no