Try making a request just like you would on port 8080, something like:
http://Hostname:80/vitualroot/servlet/Servletname
The way it works is, when Tomcat stars up, it recreates it's mod_jk.conf
file each time. It puts in there all the subdirectories that are under
it's webapps directory as virtual directories. Thus if you want to
access the file:
/%tomcat_home%/webapps/testsite/index.html
through Apache and Tomcat you would make the request to:
http://Hostname/testsite/index.html
Because inside the mod_jk.conf there is redirector on the path
"testsite" that passes that request to Tomcat.
See if that works.
Nathan
-----Original Message-----
From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: RE: Basic Doubt
Hi Nathan,
I made the request on port 80 by saying
http://hostname:80/
and the apache default page is dispayed ..
does this mean that both apache and tomcat are working fine ..
in what cases does the request is serverd by tomcat ..
how do I access servlets without using the port number ??
Do I have to make changes in web.xml file to include servlet
thanks
Venkatesh
From: "Nathan Brown" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: Basic Doubt
Date: Tue, 22 May 2001 17:46:05 -0700
Venkatesh,
Tomcat listens for activity on several ports (depending on how you
configure it). The ports of most concert are:
8080 Http Request Handler
&
8007 Ajp12 Connection Handler
Depending on the Apache module you use (JServe or mod_JK)will dictate
which port the connection will pass through. But if you make a request
directly to 8080 it will be Tomcat that answers, not Apache.
Try making the same request on port 80 and see what happens.
If Apache gives you a 404, then I would guess you don't have the Apache
module installed correctly.
Make sure you have either jserve or mod_jk installed in the apache
module directory and that you have added something to the effect of:
include /usr/local/tomcat/conf/mod_jk.conf
or the equivalent for your os and install path.
Hope that helps,
Nathan
-----Original Message-----
From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: Basic Doubt
Hi,
I am using Apache with Tomcat ..
how are the requests shared between apache and Tomcat ..
If I access the servlet as http://Hostname:8080/servlet/Servletname
..will
the request be served by tomcat or Apache ..
In what cases the request is served by Apache
thnaks
Venkatesh
________________________________________________________________________
_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
________________________________________________________________________
_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.