Knowledge Base - FAQ

Question: How do I disable directory listings in Tomcat?

If directory browsing is enabled, then anyone can see the contents of directories that do not contain an index.html or index.jsp file. To disable directory browsing, edit the file ~/conf/web.xml. Change the value of the parameter "listings" in the servlet named "default" from "true" to "false". Don't forget to restart Tomcat after making the change!

Last Modified: Jun 21, 2005


Kattare is Trustwave Certified and Safe Harbor Certified | Rated Safe For Kids by ICRA | All Rights Reserved Worldwide
Copyright © 1997 - 2012 Kättare Internet Services | Processed in 0.012 seconds by pyramid-05 in Corvallis, Oregon