Web Hosting Talk







View Full Version : Tomcat Help here, please ;-)


jman
03-20-2001, 02:41 AM
guys, anyone who had Tomcat running in a real life, please I need to ask you some questions!!


I have tomcat running on my server, so when I access the server with port 8080, the tomcat web server will server me the pages!! and I try to run some of the Jsp and servlets and they all run!! Great

then I wanted to make tomcat work with Apahce, so I went and get the jk_mod, and it is working right now!!

so I can type http://mysite/servlets/RequestInfoExample and it will run!

I had this on the server.xml

<Host name="mysite" >
<Context path="/"
docBase="/usr/local/jakarta-tomcat3.2.1/webapps/examples" />
</Host>


so , the question that confused me!! I want to have a servlet directory on /home/sites/site1 so that site1 can run servlets and jsp and another servlet directory on site2 so site2 can run servlets and jsp as well!!!

how would I do that! HELP PLEASE

please note that I am using tomcat3.2.1 which support such a funcation!! it support virtual hosting.

check this site:
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.html#virtual_hosting