tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <>
Subject RE: mod_jk and mod_jk2 HELP
Date Fri, 21 Jun 2002 12:51:02 GMT

OK, thanks.  That's what I was wasn't clear to me from your
posts how apache knew to pick up, and I have no
experience with mod_jk2 (and no desire to try until things settle down quite
a bit).

John Turner

-----Original Message-----
From: Mark Pelillo []
Sent: Thursday, June 20, 2002 7:46 PM
To: Tomcat Users List
Subject: RE: mod_jk and mod_jk2 HELP

	When you include the LoadModule line in the httpd.conf, the
automatically looks for a file called  It if
doesn't find it, it pukes.  Under the site I have now (Apache1.3 with
mod_jk) I have put the JkMounts in a seperate file and in the httpd.conf
I have a line "Include /usr/local/tomcat/conf/mod_jk.conf.  The workers
file is the same thing.  You have a "Uri" mount instead of a JkMount
which tells tomcat what content to mount.

To mount an application you need five lines


	The first two tell Apache/Tomcat about the application and where the
file are.  The next two tell Apache/Tomcat what tomcat should be
serving. and the last one I am not sure. (I do know that if it is not
there, then it doesn't work)

	I have checked the log file for both apache and tomcat and I can see
that apache serves the .html etc, which tomcat is serving the servlets
and jsp's only.

Hope this helps.

On Thu, 2002-06-20 at 07:41, Turner, John wrote:
> That's what the JkMount directive does, it tells apache which requests to
> send to tomcat.  Without it, AFAIK, every request is sent to tomcat.
> Can anyone clear up how you can use mod_jk/mod_jk2 without the JkMount
> directive?  Does mod_jk2 do away with JkMount? The goal being to use
> only for servlet and JSP requests.
> John Turner
> -----Original Message-----
> From: Mark Pelillo []
> Sent: Wednesday, June 19, 2002 6:35 PM
> To: Tomcat Users List
> Subject: RE: mod_jk and mod_jk2 HELP
> I can't answer whether mod_jk is involved in every request, because it
> really depend on the inner workings of Apache and mod_jk.  The
> httpd.conf tells apache to server .html files and the like, while the
> tell tomcat to server .jsp and sevlet.  Depending on
> which is processed, says who get involved.
> On Wed, 2002-06-19 at 07:51, Turner, John wrote:
> > 
> > Thanks for the reply, but that doesn't answer my question.  Apache
> > know anything about, only mod_jk2 does.  
> > 
> > So, if I understand your answer, it seems that mod_jk2 has to get
> > in every HTTP request?  Then it filters that request through
> >  That's not desired behavior, is it?  My point was
> that
> > mod_jk2 and tomcat should only be involved in requests where they're
> > required.  Requests for images, HTML pages, etc should all be handled by
> > apache without any intervention from mod_jk2 or tomcat.
> > 
> > Or are those options you listed in your httpd.conf file?
> > 
> > John Turner
> >
> >

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message