tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: [BUGS: 9913, 10789] Re: cvs commit:jakarta-tomcat-connectors/jk/native2/server/apache2 mod_jk2.c
Date Sat, 20 Jul 2002 03:06:01 GMT

----- Original Message -----
From: "Bojan Smojver" <bojan@rexursive.com>
To: "Tomcat Dev List" <tomcat-dev@jakarta.apache.org>
Sent: Friday, July 19, 2002 6:34 PM
Subject: Re: [BUGS: 9913, 10789] Re: cvs
commit:jakarta-tomcat-connectors/jk/native2/server/apache2 mod_jk2.c


> On Fri, 2002-07-19 at 14:45, Bojan Smojver wrote:
>
> > OK. I'll try your solution with mod_jk 1.2.0 and mod_jk2 people might do
the
> > same. I don't really like my fix in 1.2.0 because it's just a cheap hack
and it
> > doesn't address the root cause of the problem.
>
> Just tried your fix from bug report
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10789. It does work
> with mod_jk 1.2.0 and TC 3.3.x.
>
> What I'm worried about is that although the handler is now JK_HANDLER
> (and my original fix is no longer needed) the actual URI is not the page
> (/some/path/index.jsp or /some/path/index.vm) but again the directory
> itself (/some/path/). This then creates the same problem with
> getServletPath() which returns the directory, not the page. I think TC
> 4.x might have problems with that.

TC 4.x (like 3.3.x) will send a 301 (or 302, I can't remember) redirect to
the welcome file if you pass "/some/path/" to Tomcat which has a "index.vm"
file under it.  Not pretty, but no worse than Tomcat stand-alone.

>
> The old mod_jk 1.2.0 for Apache 1.3.x does some magic somewhere to make
> sure the actual page gets picked and sent to Tomcat. I'm trying to find
> where and how is that done and then apply that to mod_jk 1.2.0. It seems
> like the proper thing to do.

As I remember, this is because the 1.3.x mod_jk (both 1.2.0 & 1.1) gets to
map the sub-request from mod_dir.  It is actually because mod_jk is acting
dumb rather than because of any magic.  In Servlet terms, mod_dir does a
forward, and mod_jk say Mine Mine Mine.

I don't know the 2.0.x API well enough to be able to have an opinion on what
is the correct way to interact with mod_dir however.

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


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


Mime
View raw message