Hello

in vcl_recv add something like this:

sub vcl_recv {
  remove req.http.X-Forwarded-For;
  set req.http.X-Forwarded-For = ""> }

Best regards,

Gašper

On 03/19/2012 08:36 AM, Jewel Nuruddin 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
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
--
Gašper Furman
Spletni razvoj
Web Development

Delo, d. d.
Dunajska 5, 1000 Ljubljana
T: +386 1 47 37 946
E: [email protected]


_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to