Greetings,
I have Apache 1.3.19 and Tomcat 3.23 installed and configured on RedHat
Linux 6.2
I have done some <VirtualHost> mappings in my Apache configuration, an
imaginary domain like www.imginary.com has been mapped to a particular Linux folder. A
correponding <Hosts> directive exists in the Tomcat configuration for tyhe same
imaginary domain.
I start Apache and Tomcat together, and then in Netscape I type
http://www.imaginary.com/<some html file in Apache DocumentRoot foldfer> and this html
file gets invoked.
All is well uptil here. Now I wish to invoke a servlet, so I type
http://www.imaginary.com/servlet/<some servlet .class file in Tomcat webapps foldfer>
. According to my understanding, NetScape first sends the servlet request to Apache.
Apache finding that the request can be handled only by a servlet engine looksout for a
servlet engine and passes on the request to Tomcat. I use the mod_jk plug-in for
communication between Apache and Tomcat. When the request is recieved by Tomcat FROM
Apache then it should accordingly execute the servlet and the output HTML content
should be visible in NetScape. But instead an error is displayed in NetScape "Not
Found". So I re-invoke the servlet by typing http://www.imaginary.com:<Tomcat port
no>/servlet/<Servlet name> and voila it gets invoked.
Now it is obvious that with the Tomcat port no Netscape is ignoring Apache
and is directly requesting Tomcat to execute the servlet (remember Apache and Tomcat
are running simultaneously but are listening on different port nos). But then I am
sure I configured Tomcat to run with Apache (I included the mod_jk.conf file in
Apache's configuration file) and thus I believe that it is to Apache that http
requests go first.
What am I missing? Whys is Apache not forwarding servlet requests to Tomcat
and why do I have to send the servlet requests directly to Tomcat bypassing Apache?
Sorry for the long-winded story here.
Waiting for an early response. Thanx in advance.
SNODX
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>