tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: how to deny directory listing
Date Sat, 03 Aug 2002 14:54:51 GMT

There are various ways to deny directory listing.

Valid for both Tomcat 3.x and Tomcat 4.x.x:
You could add a welcome file to your web.xml. Something like this:
See conf/web.xml for further information.

Valid for Tomcat 3.x only:
Look for the "StaticInterceptor" defn. in your server.xml. Set the supress
property to "true" when no welcome file is present.

Valid for Tomcat 4.x.x+:
Edit the init-param "listings" for the default servlet. Change the param
value to "false".


                      "Serdar BOZDA─×"                                                   
                      <serdarbozdag@sof        To:       "tomcatGroup" <>
            >               cc:                                    
                                               Subject:  how to deny directory listing   
                      08/03/02 06:24 AM                                                  
                      Please respond to                                                  
                      "Tomcat Users                                                      

I want to deny users to see the content of a folder under webapps\ROOT.

What should I do?



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message