Hi Angelo,

I think you need to take a look at the X-Forwarded-For header.  Please see:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers

-- 
Kevin



On Sun, Jan 11, 2009 at 7:53 AM, Angelo Chen <angelochen...@yahoo.com.hk> wrote:
>
> Hi,
>
> When running Tomcat behind a Apache Http server using proxy/reverseproxy,
> following code returns "127.0.0.1" always,
> any solution to this? Thanks.
>
>        @Inject
>        private RequestGlobals requestGlobals;
>        void setupRender() {
>       String remoteIP =
> requestGlobals.getHTTPServletRequest().getRemoteAddr();
>        }
> --
> View this message in context: 
> http://www.nabble.com/t5%3A-when-running-tomcat-behind-Apache-tp21398829p21398829.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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

Reply via email to