All I know is the behavior I see on my servers.

I have DirectoryIndex set to index.jsp.  My Apache has mod_dir.

Calling a directory mapped to Tomcat (such as /myApp) with
http://localhost/myApp doesn't return anything, definitely not index.jsp.
This is on 4.0.4 and 4.1.12.  

If your DirectoryIndex does work with index.jsp, I'd be interested in seeing
your configuration.  About the only way I can think of to approach this
problem is to play with the load order for the Apache modules...perhaps
loading mod_jk at a different time or loading mod_dir after mod_jk might
change the behavior.  For me, at this time, it's just easier to stick an
index.html file in there with a refresh of 0.  

John


> -----Original Message-----
> From: Veniamin Fichin [mailto:3ca28f66@;mail.ru]
> Sent: Thursday, November 14, 2002 3:31 AM
> To: Tomcat Users List
> Subject: Re: Apache Index page jsp and sessionid with JKMount *.jsp
> 
> 
> Turner, John wrote:
> 
> > That's pretty much the solution...this has come up before.  
> > 
> > By the time JK gets involved, Apache is just about done 
> with the URL...it
> > doesn't perform any rewriting, etc. it's just looking for a match.
> 
> But in my understanding first of all when Apache is requested 
> to process 
> some directory (for example, http://www.somehost.com/test/), 
> it tries to 
> invoke any file listed in its DirectoryIndex directive, then he finds 
> index.jsp and invokes it, causing to jk to wake up. So Apache 
> is first 
> in action, and jk is following it. Am I right?
> 
> > The elegant solution is probably using mod_rewrite to 
> rewrite requests
> > ending in "/" to "/index.jsp".
> > 
> > John
> > 
> >>-----Original Message-----
> >>From: Chad Cannell [mailto:ccannell@;elogex.com]
> >>Sent: Wednesday, November 13, 2002 3:45 PM
> >>To: Tomcat Users List
> >>Subject: Apache Index page jsp and sessionid with JKMount *.jsp
> >>
> >>
> >>I am trying to set Apache's index file to index.jsp. It is 
> >>not working.
> --= [ cut ] =--
> >>
> >>Using Apache 2.0, ajp13. Tomcat 3.2x
> >>
> >>Chad
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>

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

Reply via email to