tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Bauman <n...@cortexity.com>
Subject Re: request.getremoteAddr()
Date Sun, 03 Sep 2000 23:32:08 GMT
This would be a good FAQ because I'm seeing a lot of screwyness with
mod_rewrite with Apache+Tomcat and I always suspected it wasn't Tomcat.

On Sat, 2 Sep 2000, M. A. Sridhar wrote:

> 
> > Hello tomcat-dev,
> > 
> > I use Linux6.1/Apache/JServ (last build)
> > In my JSP page i try to get a client IP address by
> > request.getRemoteAddr(), but it always returns an IP address of the
> > server. 
> > 
> > Is it a bug or i have to do something in JServ configuration???
> > Thanks
> > 
> This may or may not apply to you, but for what it's worth: I ran into the
> same problem. In my setup, this was happening because I was using the
> Apache Rewrite engine. In my setup, incoming requests directed to a URI
> such as
> 
>     /servlet/page.html
> 
> were being rewritten by the rewrite engine to be directed to
> 
>     /zone/servlet/page.html
> 
> When I changed this setup to direct requests to the servlet directly
> (without the intervening rewrite engine), the problem went away.
> 
> My guess is that this is a bug in the rewrite engine.
> 
> Hope this helps.
> 
> Sridhar
> 
> > -- 
> > Best regards,
> > Ruslan
> > mailto:lord@eltegra.ru
> 
> 
> 
> =====
> Sridhar
> ---
> M. A. Sridhar
> m_a_sridhar@yahoo.com
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 


Mime
View raw message