So then you need to go back and look at the server.xml file located in the tomcat/conf directory.
something like what I have here below needs to be between the <Engine></Engine> tags. <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> See where it says name="mydomain.com" ? That means it will only answer responses to mydomain.com. It will not answer john.mydomain.com, it will not answer www.mydomain.com, it will not answer anything but url starting with mydomain.com. To have it respond to other subdomains like (www, test, john, demo, whatever) you need to add in the Alias tag. And you can serve PHP and CFM pages off the same root (mydoman.com) I am doing it right now using phpmyadmin for a quick look into mysql and coldfusion to serve my pages. And I haven't done anything special. I setup my server similar to : http://wiki.openbluedragon.org/wiki/index.php/Single_Instance_Install And my only real difference is I set java up outside of openbd. ----- Original Message ----- From: "Trenatos" <[email protected]> To: "Open BlueDragon" <[email protected]> Sent: Friday, February 24, 2012 7:21:00 PM Subject: [OpenBD] Re: Apache2 virtual host to tomcat6 webapp? Tomcat works fine, apache works fine. No error is happening. I'm trying to get set up so that apache handles some pages, and tomcat handles some, all set up via virtual hosts. So some virtual hosts should go to apache and serve specific pages, and some virtual hosts should go to tomcat and serve certain pages. This way I can serve both html/php content via apache and cfml via tomcat (openbd war file) depending on what URL the server is receiving a request for. On Feb 24, 5:21 pm, [email protected] wrote: > Perhaps I am not understanding what your problem is. When you go to a cfm > page what error do you get? > If tomcat isn't serving correctly I believe you will get a 500 error with a > connection to the service not found (don't remember the wording) but if it is > serving pages right and you get an error page with the BlueDragon head in the > middle, then you need to add in the <Alias></Alias> tag in the server.xml > file. > > > > > > > > ----- Original Message ----- > From: "Trenatos" <[email protected]> > To: "Open BlueDragon" <[email protected]> > Sent: Friday, February 24, 2012 10:37:39 AM > Subject: [OpenBD] Re: Apache2 virtual host to tomcat6 webapp? > > I was messing with all sorts of things, I know I edited the server.xml > But is this all that's needed? I have apache set to listen on port 80 > for serving up html/php pages, and need tomcat for serving java > (OpenBD) applications, I have virtual hosts working fine with apache, > but can't figure out how to get virtual hosts to go from apache to > tomcat, since apache is "first in line". > > On Feb 23, 7:59 pm, "Ernest S. McCloskey III" > <[email protected]> wrote: > > 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/115990347459711259462http://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 -- 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
