aspose file tools*
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
Author

Help: apache work with tomcat

Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
Hi,

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 192.168.1.1----------->tomcat server
http://192.168.1.2:8080/myservlet , and servlet return remoteAddr
192.168.1.1, works great.
2) Client 192.168.1.1-----------> apache server http://192.168.1.2/myservlet
(through Apache proxy support redirect to
http://192.168.1.2:8080/myservlet), servlet return remoteAddr is
192.168.1.2, 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
author
Ranch Hand

Joined: Oct 14, 2001
Posts: 154
Does switching UseCanonicalName Off (or On) make any difference?
David
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help: apache work with tomcat
 
Similar Threads
using tomcat with apache2
Deploy a single servlet in Tomcat?
client cert authentication problem
Apache -> Tomcat servlet problem
The requested resource is not available