Did you edit the server.xml file and put in the new site? It should look like:

<Host name="mydomain.com" appBase="webapps" unpackWARs="true"
   autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"
   <Context path="" docBase="/home/mydomain/public_html/" />
   <Alias>www.mydomain.com</Alias>
</Host>

Also use the <Alias></Alias> tag for aliases. Aka: <Alias>test.mydomain.com</Alias> if I am Aliasing test. I find that you will need to put <Alias>www.mydomain.com</Alias> for it to work best.

----- Original Message ----- From: "Trenatos" <[email protected]>
To: "Open BlueDragon" <[email protected]>
Sent: Thursday, February 23, 2012 8:23 PM
Subject: [OpenBD] Apache2 virtual host to tomcat6 webapp?


The hopes is that someone here has done this and don't mind helping
out a poor newbie.

I'm setting up a Linode server and everything working just fine.
I have Apache2 serving html pages, Tomcat6 is serving java pages.
I have tested a virtual host with Apache and it works fine, but I
can't seem to figure out how to get an apache virtual host to tomcat6
webapp working.
(I have mod_jk installed but not sure if it's working right, or how to
set it up to handle virtual hosts right)

--
online documentation: http://openbd.org/manual/
  google+ hints/tips: https://plus.google.com/115990347459711259462
    http://groups.google.com/group/openbd?hl=en

Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012

--
online documentation: http://openbd.org/manual/
  google+ hints/tips: https://plus.google.com/115990347459711259462
    http://groups.google.com/group/openbd?hl=en

    Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012

Reply via email to