File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Help: apache work with tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help: apache work with tomcat" Watch "Help: apache work with tomcat" New topic

Help: apache work with tomcat

Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112

I am trying to get remote user information using request.getRemoteAddr(),
things working great on Tomcat alone, however, if I try to use Apache proxy
support have some problems. Here is the situation:

1) Client>tomcat server , and servlet return remoteAddr, works great.
2) Client> apache server
(through Apache proxy support redirect to, servlet return remoteAddr is, which is server's address

I guess 2) mistake request come from server itself instead of client machine
because request get forwarded.
Anyone knows if there is work around or other method that I can use to get
client information from tomcat servlet?
David Peterson
Ranch Hand

Joined: Oct 14, 2001
Posts: 154
Does switching UseCanonicalName Off (or On) make any difference?
I agree. Here's the link:
subject: Help: apache work with tomcat
It's not a secret anymore!