How to avoid list files under jsp directory on Tomcat 3.x?

Brian Glodde

Additional info
How can I configure server.xml and/or web.xml file so that it can prevent user to explore my jsp directory when entering URL like: http://localhost:8080/jsp
In server.xml, add the following deployment descriptor:

<RequestInterceptor className="org.apache.tomcat.request.StaticInterceptor" suppress="true"/>

Note: for Tomcat 4.x, check this faq

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.