You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Charles Yates <ce...@stanford.edu> on 2003/02/25 05:38:20 UTC

mod_proxy and getRemoteHost()

   I've been experimenting with using mod_proxy as a connector
as described here:

http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy

    I like it a lot but have run into a snag.  All my 
request.getRemoteHost()
calls return 127.0.0.1.  Does anyone know a way around this.  Otherwise
I can't use it :-(

Charles


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: mod_proxy and getRemoteHost()

Posted by Charles Yates <ce...@stanford.edu>.
   Aha!  mod_proxy adds some headers to the request, one of them
being named x-forwarded-for and contains the ip address of the
forwarded request.  I'm saved :-)

Charles

Charles Yates wrote:

>   I've been experimenting with using mod_proxy as a connector
> as described here:
>
> http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy
>
>    I like it a lot but have run into a snag.  All my 
> request.getRemoteHost()
> calls return 127.0.0.1.  Does anyone know a way around this.  Otherwise
> I can't use it :-(
>
> Charles
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org