On Fri, 21 Jun 2002, Turner, John wrote: > Sure, /*.jsp will send JSP files to tomcat. But apache doesn't know > that index.jsp is a "home page" unless you tell it so in httpd.conf: > > <Directory "/web/test/jsp"> > Options Indexes FollowSymLinks > DirectoryIndex index.html index.htm index.jsp > </Directory>
So is this something you actually have set up and are using? Is /web/test/jsp known to tomcat (i.e. as part of a context/web application)? Or are you allowing jsp's to appear outside of tomcat contexts/web applications? The thing I wonder about is how this all fits with the directory/web application structure as per the servlet/jsp spec. Basically, I believe the spec says that everything is set up as context/web application (and there's also the ROOT/default context), and the directory hierarchy has a certain structure (e.g. in terms of the WEB-INF, classes, lib directories and the web.xml file). Being able to have jsp's (and/or servlets) elsewhere might seem like a nice convenience, but is it going against the spec? Also, it seems mod_jk allows this, but not mod_webapp. > -----Original Message----- > From: Sean M Alderman [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 21, 2002 10:17 AM > To: Tomcat Users List > Subject: RE: Using JkMount with mod_jk question... > > > Thanks for the clarification John and Milt, I appreciate it. I am kind > of curious though about the configuration of index.jsp on the apache > side of things.... > > If I use a JkMount /*.jsp ajp13 directive will any jsp file in the > Apache DocumentRoot be handled by Tomcat? Or does this just mean that > any jsp file in $TOMCAT_HOME/webapps will be handled by tomcat? I'm > assuming that JkMount / ajp13 means that / is relative to > $TOMCAT_HOME/webapps, but I've found that I actually have to specify the > subdirectories under $TOMCAT_HOME/webapps in order to have access to > them. > > I guess my general confusion here is that it seems like the JkMount > directive allows one to "overlay" parts/pieces of the > $TOMCAT_HOME/webapps directory over top of the Apache DocumentRoot. > Kind of analogous to creating a directory structure on a filesystem > (e.g. /home) then mounting a new filesystem as /home and being able to > see files from both at the same time (of course that's not the way it > work). That's what it sounds like JkMount does. > > Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>