tomcat-users mailing list archives

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

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

John Turner
jturner@aas.com
http://www.aas.com

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


John,
	When you include the LoadModule line in the httpd.conf, the
mod_jk2.so
automatically looks for a file called workers2.properties.  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

[uri:examples]
content=/examples
[uri:examples/*.jsp]
[uri:/examples/servlet/*]
[uri:examples/*]

	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
tomcat
> only for servlet and JSP requests.
> 
> John Turner
> jturner@aas.com
> http://www.aas.com
> 
> -----Original Message-----
> From: Mark Pelillo [mailto:pelillom@earthlink.net]
> 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
> workers2.properties 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
doesn't
> > know anything about workers.properties, only mod_jk2 does.  
> > 
> > So, if I understand your answer, it seems that mod_jk2 has to get
involved
> > in every HTTP request?  Then it filters that request through
> > workers.properties?  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
> > jturner@aas.com
> > http://www.aas.com



--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

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