[TriLUG] Apache Tomcat 4.0 - configuration question

Phillip Rhodes mindcrime at cpphacker.co.uk
Mon Mar 26 20:46:27 EDT 2007


Warren Myers wrote:
> Hi all
>
> How do you turn off directory listings in Tomcat 4.0? Right now, I'm 
> facing
> a situation in which if someone loads a [known] directory that has no
> index.<htm*|jsp> file, they are getting a directory listing. I don't want
> that.
>
IIRC, just edit the main web.xml file's DefaultServlet configuration and
toggle the "listings" property from true to false.  The file should be 
in a conf directory
under the root of your Tomcat install.


Phil

-- 
http://www.linkedin.com/in/philliprhodes



More information about the TriLUG mailing list