Allen,
There should be a tag called <ContextManager>. I have not seen Linux version of server.xml but if you find this tag insert the child tag <RequestInterceptor> as shown in following lines - <ContextManager debug="0" workDir="work" showDebugInfo="false"> <RequestInterceptor className="org.apache.tomcat.request.StaticInterceptor" debug="0" suppress="true" /> <ContextManager/> Let me know if this helped you Allen. Good luck ! Vinay -----Original Message----- From: Allen Harper [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 12:51 AM To: [EMAIL PROTECTED] Subject: Re: Stopping directory indexing Vinay, Sorry, Using Tomcat 4.0 standalone on linux. that tag is not in my server.xml, where does it go... Also, another person suggested that I do the following: <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> I tried that, it did not work. What is the difference between your technique and his... allen ----- Original Message ----- From: "Vinay Singh" < > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday, April 25, 2002 5:48 AM Subject: RE: Stopping directory indexing > -For Stopping directory listing look for following in server.xml of tomcat > > ******* > <RequestInterceptor > className="org.apache.tomcat.request.StaticInterceptor" > debug="0" suppress="false" /> > ******* > Change to suppress=true > > -If you jar are lying in /WEB-INF/lib/ users cannot brows to that > > > -Please provide context as what are you working with. tomcat ! apache ! > solaris ! linux ! visual basic :) > > > -----Original Message----- > From: Allen Harper [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 5:52 PM > To: [EMAIL PROTECTED] > Subject: Stopping directory indexing > > > How do I stop directory indexing? In other words, how do I stop the user > from typing a URL pointing to a directory and getting the directory listing. > Also, by default, if a user types the URL pointing to a .jar file, they can > retrieve that .jar file... How can you stop that? > > Allen >
