QuestionQ41

VerifiedSecure Deployment and Maintenance

Oliver is a web-server administrator who wants to configure Tomcat so that it does not serve index pages when welcome files are absent. Which setting in CATALINA_HOME/conf/web.xml will solve this problem?

Explanation

Tomcat’s DefaultServlet uses the boolean listings initialization parameter to determine whether it may display a directory listing when no welcome file exists. Setting listings to false disables those listings.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!