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=10789>.
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=10789

Setting DirectoryIndex of index.jsp does not get served by jk2

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



------- Additional Comments From [EMAIL PROTECTED]  2002-07-17 14:17 -------
Bojan,

I checked out jakarta-tomcat-connectors and built mod_jk2, and I still get the 
same problem.

If I go to http://my.numeric.ip/ or http://my.numeric.ip/tomcat/examples/ I 
get the same message:

Access forbidden!

You don't have permission to access the requested directory. There is either 
no index document or the directory is read-protected. 

If you think this is a server error, please contact the webmaster 

Error 403
204.210.44.99 
07/17/02 06:40:56 

Both of the directories do have an index document, index.jsp.

I have looked at mod_dir.c and this is what I think is happening.  (Forgive me 
if I don't use all the proper terms, I do not know Apache that well.)

A request for a directory comes in, mod_dir looks at it and then loops through 
the files listed in the DirectoryIndex directive, initating a sub-request for 
each file in turn.

When mod_dir tries index.jsp, both the ap_hook_translate_name and the 
ap_hook_map_to_storage hooks in mod_jk2 get invoked - but the ap_hook_handler 
hook does *not* get invoked.

In my specific case, I see that ap_hook_handler does get invoked, later, when 
the error pages start getting served.  By then it is too late.

It seems to me something needs to happen to drop mod_dir out of its loop when 
index.jsp is seen to exist and have the mod_jk2 ap_hook_handler invoked.

JUST FOR FUN, after line 712 in mod_jk2.c, which is in the map to storage 
hook, I added this line:

  r->finfo.filetype = APR_REG;

finfo.filetype of APR_REG being one of the things that mod_dir is looking 
for.  When I do, I see the error message displayed in the browser is changed 
to say I can not access the requested *object*, rather than requested 
*directory*.  This makes me think I am sort of on the right track

Access forbidden!

You don't have permission to access the requested object. It is either read-
protected or not readable by the server. 

If you think this is a server error, please contact the webmaster 

Error 403
204.210.44.99 
07/17/02 06:57:57 

I do not know either Apache or mod_jk to take this any farther.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to