aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 5 Hosts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5 Hosts" Watch "Tomcat 5 Hosts" New topic
Author

Tomcat 5 Hosts

Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
Heya peoples,
I'm having a major headache with tomcat 5. I've been trying to read the tomcat 5 docs but am not getting anywhere. All the other resources on google seem to be for the wrong versions of tomcat or not doing what I want.

I'm wanting to use the <Host> tag to have multiple domains running on the single tomcat, and I want them all to have different document roots on the server like /home/domain.com/tomcat for their JSPs and servlets. I'm actually integrating with apache, but I'm pretty sure I've got that end sussed and all the requests get forwarded to tomcat where they promptly die on their feet.

Now originally what I thought I could do was put a single file for each host in TOMCAT_HOME/conf/Catalina/localhost/ but now I am thinking that you can only have context's in that dir and that hosts need to go in server.xml ?

Could anyone perchance give me an example of a host tag in use in a tomcat 5 config? all the stuff I find on the web seems to be for tomcat 4 and the syntax seems to be different

any help much appreciated.


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat 5 Hosts