Varnish client IP address not display

Jewel Nuruddin jewel.nuruddin at eastbeam.co.jp
Mon Mar 19 08:52:18 CET 2012


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120319/ec7356c6/attachment.html>


More information about the varnish-misc mailing list