File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes single tomcat server multiple domain names Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "single tomcat server multiple domain names" Watch "single tomcat server multiple domain names" New topic
Author

single tomcat server multiple domain names

Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
I have 3 different domain names pointed at the same ip address with tomcat running on it. Is there a way to have requests for domain name 1 go to one context(webapp) request for domain name 2 go to another and domain name 3 go to another?

-Tad
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Look at your server.xml file.
You can create multiple hosts and set the domain for each.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: single tomcat server multiple domain names
 
Similar Threads
Configuring Virtual Hosts
JNDI Lookup from weblogic to another Weblogic
Where can I find a host for my JSP site?
Confugure Tomcat To Host a Server
certificate for additional domain going to same site