Could you please point me to an example of how I can do this? We are
using apache-tomcat-6.0.18

On Tue, Jan 5, 2010 at 11:41 PM, Mark Thomas <ma...@apache.org> wrote:
> On 06/01/2010 04:14, Mohit Anchlia wrote:
>> tomcat 6:
>>
>> Is it possible to inject or change remote address to what's in
>> x-forwaded-for in http header such that when Servlet received the
>> request it's already in the request.getRemoteAddress()? Otherwise
>> we'll need to make a urgent change to read from the HTTP header. We
>> didn't realize it earlier since we are using F5 LTM.
>
> The next release of Tomcat 6 will include a new valve (RemoteIpValve) to
> do exactly this. If you can't wait for the next 6.0.x release (should be
> soon - hopefully next week or so) then you can always use that as the
> basis to write your own valve. Alternatively, Tomcat 7 also has a filter
> that does the same thing that you could use as a startign point.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to