Add "index.jsp" in the "DirectoryIndex" statement of Apache. Also check your JkMount statements. Apache needs to forward all jsps to Tomcat.
RS "Michael Remijan" <Michael.Remijan@s To: "Tomcat Users List" olocup.com> <[EMAIL PROTECTED]> cc: 08/12/02 02:03 PM Subject: RE: automatically serve index.jsp Please respond to "Tomcat Users List" ... Nope, that does work either. I've been using tomcat for a while so I've already tried the most of those kinds of things. It looks to me like the mappings in the workers2.properties file is looked at first. If a matching is found, it is forwarded to tomcat. If not, it goes to apache. Since I have directory browsing for that directory off and no index.html I get apache's standard error message for not being able to see that file. What I want apache to do is translate http://localhost/diary/ into http://localhost/diary/index.jsp. can I do this with a redirect? <mike/> -----Original Message----- From: Subir Sengupta [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 1:24 PM To: 'Tomcat Users List' Subject: RE: automatically serve index.jsp Put this in your web.xml <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> Subir -----Original Message----- From: Michael Remijan [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 11:02 AM To: Tomcat Users List Subject: RE: automatically serve index.jsp ... having this snippet workers2.properties also works - workers2.properties (snippet) ------------------------------------------- [uri:/diary/] info=Map the whole webapp --------------------------------------------------------------------------- <mike/> -----Original Message----- From: Steve Prior [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 12:53 PM To: Tomcat Users List Subject: Re: automatically serve index.jsp You're a little ahead of me in doing this, but did you try adding index.jsp to a DirectoryIndex directive in Apache? This was very obious to do in Apache 1.3, not sure as obvious in 2.0. Steve Michael Remijan wrote: > hi all, > > I'm currently working on Apache 2.0.39 <-> tomcat-4.1.8 with mod_jk2 and jdk1.4.0_01. I've posted previously about apache giving a directory listing instead of returning index.jsp. The only way I've been able to get around this problem is editing the workers2.properties file to include a mapping to the whole webapp... > > > - workers2.properties (snippet) ------------------------------------------- > [uri:/diary/*] > info=Map the whole webapp > --------------------------------------------------------------------------- > > > > I have an alias and directory in httpd.conf set up as follows.... > > - httpd.conf (snippet) ---------------------------------------------------- > ## > ## diary webapp > ## > Alias /diary "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary" > > <Directory "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary"> > Options FollowSymLinks MultiViews IncludesNoExec > AddOutputFilter Includes html htm gif jpeg jpg > AllowOverride None > Order allow,deny > Allow from all > </Directory> > ---------------------------------------------------------------------------- > > > The question I have is, because of mapping the whole webapp in the workers2.properties file, will that basically override apache serving static content? I assuming it would but I don't have the time to go digging around in the connector's source. > > > thanks, > <mike/> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: < mailto:[EMAIL PROTECTED]> For additional commands, e-mail: < mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: < mailto:[EMAIL PROTECTED]> For additional commands, e-mail: < mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>