Tomcat5.5.x配置整理 - 禁止文件目录列表

修改jakarta-tomcat-5.5.x\conf\web.xml,把listing设置为false

  1. <servlet>  
  2.   <servlet-name>default</servlet-name>  
  3.   <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>  
  4.   <init-param>  
  5.     <param-name>debug</param-name>  
  6.     <param-value>0</param-value>  
  7.   </init-param>  
  8.   <init-param>  
  9.     <param-name>listings</param-name>  
  10.     <param-value>true</param-value>  
  11.   </init-param>  
  12.   <load-on-startup>1</load-on-startup>  
  13. </servlet>  

你可能感兴趣的:(apache,tomcat,Web,xml,servlet)