Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to avoid listing files under jsp directory on Tomcat?

0
Posted

How to avoid listing files under jsp directory on Tomcat?

0

In Tomcat 4.x and upper versions, the Default Servlet serves static content. The Tomcat Functional Specifications require that implementations accept several parameters–including one that indicates whether to provide directory listings when a directory without welcome files is requested. To suppress directory listings in Tomcat, set the value of the servlet’s initialization parameter listings to false in Tomcat’s default deployment descriptor ($CATALINA_HOME/conf/web.xml).

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123