Sunday, April 25, 2021

Disabled Directory Listing in tomcat Apache

 1. Edit the following file with a text editor, such as Notepad.


<CATALINA_HOME>\conf\web.xml

2. Search for the following tag:

Code:
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>


3. Change the param-value associated with the init-param named listings from true to false. The new tag should look like the tag below:

Code:
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>


4. Restart Tomcat.

No comments:
Write comments