server.xml looks fine as far as I can tell. Here's what you should do: 1. Verify Tomcat host is working correctly. To verify that you've got tomcat working correctly with your domain name change your dev.dynamichostings.com host's appBase to be the same as localhost's and then try: http://dev.dynamichostings.com:8080
If you get the tomcat welcome screen (which you will) you know you've set up the host correctly. http://localhost:8080 & http://dev.dynamichostings.com:8080 are now equivalent as far as Tomcat is concerned. 2. Get your webapp working with Standalone (port 8080) Verify that your webapp is working correctly by trying: http://localhost:8080/dynamichostings OR http://dev.dynamichostings.com:8080/dynamichostings (Incidentally, I get a 503 when i try http://66.80.144.156:8080/dynamichostings so your webapp isn't working now). 3. Get Tomcat connected to Webserver This is when you get http://dev.dynamichostings.com/dynamichostings to work. Set up your IIS + JK2 or whatever you are going to use to direct the requests to Tomcat as appropriate. 4. Point http://dev.dynamichostings.com directly to your webapp. Change the appBase to point directly to your webapps folder. Make a new folder under TOMCAT_HOME/conf/Catalina/ called dev.dynamichostings.com Make a new file in that folder called webapp.xml (ie. dynamichostings.xml). In webapp.xml, place a blank context like this: <Context path="" docBase="" debug="0" privileged="true"></Context> And that should do it. If you follow these steps then when you have errors you will know exactly which component is causing the errors. As opposed to now when it could be any one of many things. Hope that helps, Adrian ----- Original Message ----- From: "LILES, DAVID (CONTRACTOR)" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 9:33 AM Subject: RE: Configuration Help Ok, I've changed the server.xml file so that <engine> and at least one <host> reference "localhost". The ultimate goal is to have Tomcat support multiple individual web applications and not have multiple context configurations for one host. Before, when the server.xml file was configured to use the server's ip address I was able to get the following URL to work: http://66.80.144.156/dynamichostings Now that no longer works since I've changed it to use "localhost". I can only get this URL to work: http://66.80.144.156:8080/dynamichostings Ultimately I'm trying to get the following to work: http://dev.dynamichostings.com and several other web applications. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
