February 28, 2006, 12:55 PM
Ron WoodsTomcat Directory Configuration Question
Using the url
http://localhost/ibi_apps/ calls the welcome.jsp script. Using the url
http://localhost/ibi_apps (without the /) displays a 404 error.
We've created directories below ibi_apps (http://localhost/ibi_apps/test) that allow directory browsing and do not have a default page. How do we setup the proper controls to protect against directory browsing and allow automatic loading of a page?
February 28, 2006, 02:25 PM
dhagenThis doesn't seem to work for me, but the doc says to change the conf/web.xml file. Change the listings param value 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>
March 01, 2006, 10:26 AM
Ron Woodswhat documentation are you referring to?