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 <[email protected]> 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 < [email protected]> 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
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
