Should Tapestry assume it is running behind Apache and correctly
operate on those special headers?

On Sun, Jan 11, 2009 at 2:57 PM, Kevin Menard <nirvd...@gmail.com> wrote:
> 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
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to