Prohibit Apache and Tomcat to list a list of directory lists

xiaoxiao2021-03-04  52

Author: ococo (2005.04.18)

If you do not specify a file name in the user's URI, Apache and Tomcat look up the default file index. *, Etc. by default. Can't find a list of directory, and expose the file list. And usually this is not what we want. The modification method is as follows: Apache:

Increase parameters - Disable-AutoIndex: ./configure --prefix = / usr / local / httpd2.0.53 / --disable-autodu = / usable-so / --datadir = / usr / local / web (due to HTTPD.CONF contains configuration related to AutoIndex, please comment)

Tomcat:

The Listings parameter of the Default Servlet is set to false:

default org.apache.catalina.servlets.defaultServlet debug 0 Listings false < / init-param> 1

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

New Post(0)