On Thu, 12 Dec 2002, Gerrit Grobbelaar wrote: > Please help, the following is still unresolved: > ============================================== > Would still like to do it the proper way though. > I know with Tomcat 3.2.x it was as simple as referencing the > RequestInterceptor component in server.xml: > > <RequestInterceptor > className="org.apache.tomcat.request.StaticInterceptor" > debug="0" suppress="true" /> > > So now for the HOWTO with Catalina. > Apparently the equevalent for the RequestInterceptor component is the Valve > component, but I'm not so clear on the implementation of this. > Anybody?
AFAIK, the "proper" way to control whether directory listings are shown is to use the listings parameter of the default servlet in web.xml, as you outlined in your original post below. You can do it in the conf/web.xml to affect all webapps, and/or do it in the individual webapps' web.xml's (e.g. to override the default). > -----Original Message----- > From: Turner, John [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 13:15 > To: 'Tomcat Users List' > Subject: RE: Catalina Directory Listing > > > > Put an index.html file in each directory that redirects to the home page > using a META REFRESH of zero. Not so elegant, but very simple and 100% > effective. > > John > > > -----Original Message----- > From: Gerrit Grobbelaar [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 5:48 AM > To: Tomcat Users List > Subject: Catalina Directory Listing > > How must I configure Catalina (Tomcat 4.1.12) so that it doesn't show a > directory listing of the directories that don't have any welcome-files? The > Valve Component? How? etc. > > Currently I have a weak sollution (IMHO): > Implementing "org.apache.catalina.servlets.DefaultServlet" and give it (via > web.xml): > <init-param> > <param-name>listings</param-name> > <param-value>false</param-value> > </init-param> > and then i just map that servlet to the directory/directories i don't want > to show a listing. > > Thanks in advance > Gerrit > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > Milt Epstein Research Programmer Integration and Software Engineering (ISE) 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]>
