Shield Tomcat directory list function

xiaoxiao2021-03-06  124

Shield Tomcat directory list function

By default, if you visit a web app under Tomcat, if you entered a directory name, and there is no available Welcome file in this directory, then Tomcat will list all the files in the directory, if You want to mask this default behavior, then modify the conf / web.xml file, will:

Default

org.apache.catalina.servlets.defaultServlet

debug

0

Listings

True

1

change into

Default

org.apache.catalina.servlets.defaultServlet

debug

0

Listings

false

1

转载请注明原文地址:https://www.9cbs.com/read-100155.html

New Post(0)