You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dieter Schicker <di...@dilino.org> on 2008/01/18 10:32:22 UTC

Re: Request parameters when using Apache mod_rewrite [SOLVED]

Ok, sorry for bugging you. I overlooked the fact that I get the
following headers:

x-forwarded-for: 1.2.3.4
x-forwarded-host: abc.com
x-forwarded-server: abc.com

Dilino

Dieter Schicker wrote:
> Hi,
>
> I'm running Tomcat 6.0.14 behind an Apache with mod_rewrite proxying.
>
> <code>
> RewriteRule ^/www/(.*\.xyz)$ http://127.0.0.1:8080/webapp/$1 [P]
> </code>
>
> Now when I examine the request object with e.g.
>
> <code>
> request.getRemoteAddr();
> </code>
>
> I (of course) get "127.0.0.1".
>
> So my question is: Is there a way to get the "real" remote address (the
> remote address _before_ it get's rewritten) with this scenario?
>
> Many thanks in advance
> Dilino
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org