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 servlet-name> org.apache.catalina.servlets.defaultServlet servlet-class> debug param Name> 0 param-value> init-param> Listings param-name> false param-value> < / init-param> 1 load-on-startup> servlet>