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
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply 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: 56529
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Two domain names to Two applications in same server
 
Similar Threads
Track domain changes
change in domain
One War file with multiple webapps
URGENT URGENT !!!! Please help
track domain changes