You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Barclay <Da...@digitalfocus.com> on 2000/09/18 19:02:40 UTC

mod_jk vs. mod_jserv

Is there any advantage to using mod_jk instead of mod_jserv (with
Apache)?  More specifically, is there any need to use mod_jk (e.g.,
to get exclusive features) instead of mod_jserv?

The "Working with mod_jk" (at 
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html)
doesn't seem to say anything about that.

Thanks,

Daniel
-- 
Daniel Barclay
Digital Focus
Daniel.Barclay@digitalfocus.com

RE: mod_jk vs. mod_jserv

Posted by Mike Bremford <mi...@paperx.com>.
I believe it's also supposed to differentiate between HTTP and HTTPS
correctly.

I haven't looked at the mod_jk source, but I know that the jserv protocol
as it stands can't identify an SSL connection to tomcat. Apache/JServ got
around this with a hack (if the connection was on port 443, it's secure),
but
tomcat hasn't done this, which is why the scheme is always HTTP and
isSecure()
always returns false if you connect via mod_jserv.

Cheers... Mike


> -----Original Message-----
> From: Thomas T. Veldhouse [mailto:veldy@veldy.net]
> Sent: 18 September 2000 18:31
> To: tomcat-user@jakarta.apache.org; Daniel.Barclay@digitalfocus.com
> Subject: Re: mod_jk vs. mod_jserv
>
>
> It seems to me that this modules will not instantiate a
> separate instance of
> the Java interpreter, as mod_jserv does.  Thus you save on
> resources.  I
> assume that for this very reason, it is probably faster as well.
>
> Tom Veldhouse
> veldy@veldy.net
>
> ----- Original Message -----
> From: Daniel Barclay <Da...@digitalfocus.com>
> To: <to...@jakarta.apache.org>
> Sent: Monday, September 18, 2000 12:02 PM
> Subject: mod_jk vs. mod_jserv
>
>
> >
> > Is there any advantage to using mod_jk instead of mod_jserv (with
> > Apache)?  More specifically, is there any need to use mod_jk (e.g.,
> > to get exclusive features) instead of mod_jserv?
> >
> > The "Working with mod_jk" (at
> >
> http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk
-howto.html)
> doesn't seem to say anything about that.
>
> Thanks,
>
> Daniel
> --
> Daniel Barclay
> Digital Focus
> Daniel.Barclay@digitalfocus.com
>



Re: mod_jk vs. mod_jserv

Posted by "Thomas T. Veldhouse" <ve...@veldy.net>.
It seems to me that this modules will not instantiate a separate instance of
the Java interpreter, as mod_jserv does.  Thus you save on resources.  I
assume that for this very reason, it is probably faster as well.

Tom Veldhouse
veldy@veldy.net

----- Original Message -----
From: Daniel Barclay <Da...@digitalfocus.com>
To: <to...@jakarta.apache.org>
Sent: Monday, September 18, 2000 12:02 PM
Subject: mod_jk vs. mod_jserv


>
> Is there any advantage to using mod_jk instead of mod_jserv (with
> Apache)?  More specifically, is there any need to use mod_jk (e.g.,
> to get exclusive features) instead of mod_jserv?
>
> The "Working with mod_jk" (at
> http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html)
> doesn't seem to say anything about that.
>
> Thanks,
>
> Daniel
> --
> Daniel Barclay
> Digital Focus
> Daniel.Barclay@digitalfocus.com
>


handling .jsp files in Apache user directories

Posted by Daniel Barclay <Da...@digitalfocus.com>.
Is this a FAQ that is already answered somewhere?:

Can TomCat 3.1 serve as an Apache handler for .jsp files that are contained 
within the regular content directories, specifically including user direc-
tories (e.g., "http://server/~username")?


I've figured out a (crude) way to set up TomCat to handle .jsp files 
under Apache's document root directory.  

(In server.xml, I used '<Context path="" docbase="/path/to/Apache/htdocs" ...>' 
to have TomCat look for .jsp files in the same directories from which Apache is
serving out regular files.

That is, just as the URL http://localhost/f normally maps to file .../htdocs/f, 
the URL http://localhost/f.jsp maps to file .../htdocs/f.jsp (instead of a file
f.jsp in a completely separate directory).)

However, that of course doesn't work for .jsp files in user directories.  
(Tomcat reports the error:
    "/path/to/Apache/htdocs/~someuser/test.jsp" not found 
.)


Is there a way for TomCat to look for files relative to the directory 
("/home/username/public_html") usually associated with the URL instead of 
relative to the original URL (".../~username")?



Thanks,

Daniel
-- 
Daniel Barclay
Digital Focus
Daniel.Barclay@digitalfocus.com