This content has been marked as final.
Show 1 reply
-
1. Re: How to disable directory browsing
ekimregurk Feb 1, 2006 10:39 PM (in response to ekimregurk)I figured it out myself. Luckily I had done it before with Tomcat and the struggle finally came back to me.
In the conf/web.xml file you set listings to false. For example
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
That will disable directory browsing. I found the answer on the Java Sun forum as well, here is a link:
http://forum.java.sun.com/thread.jspa?threadID=581499&messageID=2962821