tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rseque...@transentric.com
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:
<welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
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".

RS




                                                                                         
                 
                      "Serdar BOZDA─×"                                                   
                  
                      <serdarbozdag@sof        To:       "tomcatGroup" <tomcat-user@jakarta.apache.org>
   
                      thome.net>               cc:                                    
                    
                                               Subject:  how to deny directory listing   
                 
                      08/03/02 06:24 AM                                                  
                 
                      Please respond to                                                  
                 
                      "Tomcat Users                                                      
                 
                      List"                                                              
                 
                                                                                         
                 
                                                                                         
                 




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

What should I do?

Thanks,

Serdar






--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message