Is This Content Helpful?
We're glad to know this article was helpful.
Instructions provided describe how to disable Directory Listing (Directory Browsing) in Apache Tomcat Context (Virtual Directory).
When Apache Tomcat is installed, directory listing is enabled by default. This can be a very useful debugging tool, but for production deployments, this should be turned off.
Apache Tomcat uses the term Directory Listing instead of Directory Browsing as in Microsoft Internet Information Services (IIS), and it uses the term Context instead of Virtual Directory.
This is the global web.xml file, which means that any changes here will affect ALL Web applications deployed by that Tomcat instance. If more granular control is desired, like turning it off for certain applications but not for others, the first method of creating index.html files should be implemented.