You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/07/17 04:12:38 UTC
DO NOT REPLY [Bug 9913] -
Default pages not picked up by mod_jk 1.2.0 with Apache 2.0.36
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9913>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9913
Default pages not picked up by mod_jk 1.2.0 with Apache 2.0.36
------- Additional Comments From bojan@rexursive.com 2002-07-17 02:12 -------
Finally had some more time to play with this. Here is what the problem is...
jk_handler starts with this (line 1184 in mod_jk.c):
------------------------------
if(strcmp(r->handler,JK_HANDLER))
return DECLINED;
------------------------------
when page is explicitly referenced, r->handler is jakarta-servlet, so all goes
well. However, when the page is the default page, r->handler is
httpd/unix-directory so jk_handler simply declines to serve the request.
The most obvious fix for this is:
------------------------------
if(strcmp(r->handler,JK_HANDLER) && strcmp(r->handler,DIR_MAGIC_TYPE))
return DECLINED;
------------------------------
I don't know enough about Apache 2 and mod_jk to vouch for this fix, so any of
the Apache/mod_jk specialists out there, please review before I commit.
The fix does cause (at least) one problem... The getServletPath() call returns
'/' rather than actual page, for instance '/index.jsp' or '/index.vm', which is
different from 1.3.x.
Anyway, some progress...
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>