Hi Brett, You saved my day!! Thanks a lot of you, now its working perfectly fine.
Thanks, Amit -----Original Message----- From: Brett Delle Grazie [mailto:brett.dellegra...@gmail.com] Sent: Wednesday, February 02, 2011 7:31 PM To: Amit Nigam Cc: haproxy@formilux.org Subject: Re: How to get gateway/Source IP in x-forward-for Hi Amit, On 2 February 2011 13:50, Amit Nigam <amitni...@gobindas.in> wrote: <snip> > > I was using tomcat 6.0.26, updated to 6.0.30, still no success. > Have you configured the remote-IP valve? http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote_IP_Valve If so, how and where? The remote-IP valve is necessary for Tomcat to interpret the X-Forwarded-For header. Otherwise it will just ignore it. <snip> > A work-around is to use an different header name (not X-Forwarded-For) > > I tried this too but still I am getting x-forwarded-for header instead of > new header name given as follows: > > option forwardfor header X-Client Sounds like you haven't actually configured the Remote-IP valve. Do that and it should work. <snip> -- Best Regards, Brett Delle Grazie