wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Two domain names  to Two applications in same server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Two domain names  to Two applications in same server" Watch "Two domain names  to Two applications in same server" New topic
Author

Two domain names to Two applications in same server

Tokai Moshai
Greenhorn

Joined: May 24, 2006
Posts: 16
Hello, here is what want to do.

I have one machine running tomcat 5.0.28 on FC3.

I have two web applications running there: appone and apptwo

I have two domain names: www.domainappone.com www.domainapptwo.com

what I want is, when I type www.domainappone.com, it goes straight to appone, and http://www.domainappone.com/ is shown on browser address bar. Same is true for 2nd one:

when typed www.domainapptwo.com, it goes to apptwo and http://www.doaminapptwo.com/ is shown on the browser address bar.

Q 1: is it possible to do it with one tomcat server running?
Q 2: If one is true, how? some general directons would be good enough
Q 3: if 1 is false, can I run two instances of tomcat on FC3?
Q 4: if 3 is true, how? again, some general directions would be fine.

Thanks a lot.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Yes, look up the concept of "virtual host".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Tokai Moshai
Greenhorn

Joined: May 24, 2006
Posts: 16
Thanks Sheriff. I'll take it from there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two domain names to Two applications in same server
 
Similar Threads
Track domain changes
track domain changes
change in domain
One War file with multiple webapps
URGENT URGENT !!!! Please help