tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: help with directory listing
Date Wed, 30 Aug 2000 18:09:16 GMT
> Hi,
> I was wondering about turning off directory listing within Jakarta so that 
> external users can't see the jsp context directory listing.
> Ie, www/jsp contains the jsp files, though, we don't necessarily want the 
> whole world to see all the jsp files contained within.
> How do we disable the auto indexing for the /jsp context ?

The simple solution : just add an index.html in each dir ( with anything
you want inside - like "you can't see the dir listing " ).

Not-so-simple: create a new interceptor based on StaticInterceptor, where
you remove the directory listing. Replace StaticIntereceptor with the new


View raw message