In the web xml file under $CATALINA_HOME/conf change the default servlet settings to:
<servlet> <servlet-name>default</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>readonly</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> On Fri, 20 Sep 2002, Matt Raible wrote: > Can you use this on Tomcat 4.0.1+? If so, where do you put it in > server.xml? > > Thanks, > > Matt > > > -----Original Message----- > > From: Dan Lipofsky [mailto:[EMAIL PROTECTED]] > > Sent: Friday, September 20, 2002 10:16 AM > > To: Tomcat Users List > > Subject: Re: Directory Listing > > > > > > In server.xml set suppress="true" for StaticInterceptor like below > > > > <RequestInterceptor > > className="org.apache.tomcat.request.StaticInterceptor" > > debug="0" suppress="true" /> > > > > - Dan > > > > > How do I avoid listing the directory files when users type > > the url in > > > tomcat 3.2.4? > > > Thanks > > > > > > > > > > -- > 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]>