Varnish client IP address not display
Stewart Robinson
stewsnooze at gmail.com
Mon Mar 19 09:02:31 CET 2012
Jewel,
What header are you checking on the back end?
You should be reading the x-forwarded-for header rather than some form of
remote_addr.
Stewart Robinson
@stewsnooze
FullFatThings.com
On 19 Mar 2012, at 07:53, Jewel Nuruddin <jewel.nuruddin at eastbeam.co.jp>
wrote:
Sorry I the configuration is bellow, please ignore my previous
configuration.
sub vcl_recv {
remove req.http.X-Forwarded-For;
set req.http.X-Forwarded-For = client.ip;
}
But still it did not work for me !!!
On Mon, Mar 19, 2012 at 4:36 PM, Jewel Nuruddin <
jewel.nuruddin at eastbeam.co.jp> wrote:
> Hello
> My varnish is run on 10.70.18.22 server and my web server run back end
> 10.70.18.30
> When client browse through varnish in my web server it always show varnish
> IP(10.70.18.22)
> But I want my web server should display client IP address.
> I use the following configuration
>
> sub vcl_fetch {
>
> remove obj.http.X-Varnish-IP;
> set obj.http.X-Varnish-IP = server.ip;
>
> }
>
> It did not work for me.
> Can some one please help me what should I do.
>
> Thanks
> Jewel
>
_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120319/d7a915c3/attachment.html>
More information about the varnish-misc
mailing list