File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 different IPs, same port

 
rnicolas
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets say I assign 2 IPs for my PC (e.g. 192.168.0.1 and 192.168.0.2). I want my Apache to listen to 192.168.0.1 port 80 and my Tomcat to listen to 192.168.0.2 port 80. Is this possible?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17624
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. However, if you expect to address the servers by hostname rather than IP address, you do have the limitation that the hostname can map to only one IP address - you'd have to provide an alternate hostname for the other.
The more common case is to use one of the bridging mechanisms (such as the ajp13 or mod_webapp) connectors to pass through requests from Apache to Tomcat. It's less confusing to the user.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic