Focal Point
Tomcat Directory Configuration Question

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2681035651

February 28, 2006, 12:55 PM
Ron Woods
Tomcat 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?


Ron Woods
San Antonio Express-News
Release: WebFOCUS 7.1.1
OS/Platform: Windows XP SP2 x86 32bit
O/P Formats: Primarily pdf and xls
February 28, 2006, 02:25 PM
dhagen
This 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>



"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
March 01, 2006, 10:26 AM
Ron Woods
what documentation are you referring to?


Ron Woods
San Antonio Express-News
Release: WebFOCUS 7.1.1
OS/Platform: Windows XP SP2 x86 32bit
O/P Formats: Primarily pdf and xls
March 01, 2006, 10:49 AM
dhagen
http://tomcat.apache.org/tomcat-5.0-doc/default-servlet.html


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott