Re: Patch to override request.getRemoteAddr if behind a reverse proxy

2006-07-15 Thread Mladen Turk
Filip Hanik - Dev Lists wrote: This is a question for the user list, it might be better for you to take the inquiries there, and you shouldn't need to hack tomcat for something like this. Simply create a filter, that wraps your HttpServletRequest in a HttpServletRequestWrapper, worst case

Re: Patch to override request.getRemoteAddr if behind a reverse proxy

2006-07-15 Thread Johan van den Berg
Then why was proxyPort and proxyName not done in a Valve or Filter? I assumed that I should be following the same route that other, similar requirements followed. With regards to a Filter, what if I have 30 webapps, and each one needs the correct request.getRemoteAddr? Could one map a filter

Patch to override request.getRemoteAddr if behind a reverse proxy

2006-07-14 Thread Johan van den Berg
Hi I'm totally new to hacking Tomcat, so excuse if I'm not following the proper procedure, but needed to do this for our site that has a Tomcat behind Apache (mod_jk), that sits behind a reverse proxy load balancer. The idea is basically to not use the TCP endpoint of Apache (which will always

Re: Patch to override request.getRemoteAddr if behind a reverse proxy

2006-07-14 Thread Filip Hanik - Dev Lists
This is a question for the user list, it might be better for you to take the inquiries there, and you shouldn't need to hack tomcat for something like this. Simply create a filter, that wraps your HttpServletRequest in a HttpServletRequestWrapper, worst case you could create Valve that does