After reading more explanations and documentation about what to put in the server.xml file, and the answer to my last post below (see "Confused on a higher plane - Tomcat"), I STILL can't seem to make head nor tail of specifically what goes where in the <host> section of the server.xml file.
The relevant facts about my site are:
I am running on a dedicated server set up by my web host (which doesn't provide tech support related to Tomcat or Apache).
I am running Tomcat 4.06 with Apache 2.0.(X) under Linux.
I am trying to get Tomcat to handle servlets.
My domain name is registered, but not yet assigned to the URL number of the server, so I have to type in http://myURLnumber/mydomainname/
to access the site (don't know if this effects anyting in server.xml or not).
The complete pathname to my site, which is a name based virtual site, is /home/virtual/site1/fst/var/www/html
Within that directory are, as a far as I know, all the elements that are considered a "web application" including all my html files, a web.xml file, and a WEB-INF folder which contains lib,jsp,and classes folders (the servlet class fiels are in the latter).
Host name="defaultHost" appbase="/var/www/html"
Context path="" docBase="" /
Host name="mysite" appbase="/home/virtual/site1/fst/var/www/html"
Context path="myURLnumber/mydomainname" docBase="/home/virtual/site1/fst/var/www/html" /
The first host - /host section was there already, it was my understanding that this had to stay there to define a default host for Tomcat to try in the absence of anything else (there is another webapp directory structure there in /var/www/html with a default placemarker html page in it, put there by the web host).
The second host - /host section is my attempt to tell Tomcat where I want it
to go to get the servlets. I also tried Context path="/mydomainname" (left off the URL number) and a few other minor variations with no luck. I am trying to get a helloworld servlet by typing in http://myURLnumber/mydomainname/servlet/helloworld
The web.xml file seems to be set up OK, the helloworld servlet is listed in there and I am using the correct name for it.
All I get are error messages in the browser that say:
The requested URL /~admin1/servlet/HelloWorldExample was not found on this server.
The Apache logs read "File does not exist: /home/virtual/site1/fst/var/www/html/servlet
What am I getting wrong?