Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two domain names to Two applications in same server

 
Tokai Moshai
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, look up the concept of "virtual host".
 
Tokai Moshai
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sheriff. I'll take it from there.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic