Hi all,
I'm wondering how I go about amending my web application's web.xml to disable directory browsing? I know that by amending the conf/web.xml you can disable directory browsing for
all apps, but I wish to only set this property for a single web app. The following is part of the conf/web.xml that was amended to disable browsing (basically changing listings from true to
false.
<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>
I've tried adding the above into my web-app's web.xml but receive configuration errors on deployment.
Any hints or tips would be much appreciated!
Regards
ribot