JavaXT
|
|
How To Disable Directory Browsing in GlassfishBy default, glassfish allows users to get a directory listing if no default web page is present (e.g "index.html", "index.jsp", etc). You can disable Directory Browsing in two simple steps:
<servlet> <servlet-name>default</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> |