Re: [ILUG] Tomcat

From: Tim McAuley (mcauleyt at domain tcd.ie)
Date: Tue 23 Oct 2001 - 22:49:38 IST


> I'm just setting up Tomcat here on a Slackware 8.0 box. It's installed an
> running fine however the default port it accepts requests on is 8080
> (http://10.1.0.1:8080); is it possible to set up Tomcat it will accept
> requests for servlets without having to go through port 8080? ie
> http://10.1.0.1/servlet/RequestInfoExample
>
> I remember hearing about some kind of mod_jsp for apache which would
> obviously be much better.
>

Which version of Tomcat is it?

If it is 3.2.3 (i.e. 3.x.x) then you can use mod_jk (see the Jakarta site
for that)
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html

If it 4.0 then you might have difficulty, or I did at any rate. I'm not sure
if there is a suitable adapter for Apache available at the moment... of
course I might have been half asleep when I was trying to get it working
(what ever IT was?).

An alternative is to disable Apache (or other web server) and modify Tomcat
to use port 80. I'm sure it is easy to do. One of the xml file in the conf
directory should have the setting.

Cya

Tim

PS... and remember to run a servlet directly, you need to add the
appropriate entry to the web.xml file in your context folder.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:53 GMT