It's not a secret anymore!
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5 Hosts" Watch "Tomcat 5 Hosts" New topic

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/ 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.
I agree. Here's the link:
subject: Tomcat 5 Hosts
It's not a secret anymore!