title: Linking Apache to Tomcat with multiple domains
body: <p>Okay, so I've been working for a while on this, and have been searching, but so far I have not found any answers that actually answer what I want to know.  I'm a little bit at the end of my rope with this one, but I'm hoping I can figure this out sometime soon.</p>
  
  <p>So I have Apache 2 installed and serving up standard webpages, but I also have that linked to a Tomcat instance for one of my domains currently supported.  However, I want to add another domain to the server via Apache that points to a separate code base from the one I already have.  I have been coming at this from several different angles, and I have determined that I just don't know enough about setting up these servers to really do what I want to do.</p>
  
  <p>Little information on my server: 
  Currently running a single Tomcat5.5 instance with Apache 2, using mod_jk to connect them together.</p>
  
  <p>I have a worker in workers.properties that points it's "host" field to "localhost" with the correct port my Tomcat instance, so that all works.</p>
  
  <p>In my Tomcat server.xml file, I have a host defined as "localhost" that points at my webapp that I am currently serving up, with that host set as the defaultHost as well.</p>
  
  <p>One thought I had was that I could add a new worker with a different host than "localhost" (i.e. host2) and then define a new host in my server.xml file called "host2" to match it, but after reading around some on the internet, It seems the "host" of the worker must point to a server, and not a hostname in the Tomcat instance, is this correct?</p>
  
  <p>Again, a simple rundown of what I want:
  Setup in apache/tomcat combo such that www.domain1.com points at "webapp1" and www.domain2.com points at "webapp2".</p>