aspose file tools*
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 Spring in Action this week in the Spring 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: 61413
    
  67

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