Wednesday, March 22, 2006

Customizing Tomcat - Turning off directory listings

Customizing Tomcat

I was suprised how long I had to dig around to find the answer to the simple question -- "How do you turn off auto directory indexing in tomcat?"

You would think this woudld be a common request, as production sites should have this set.

Oh well, the answer is to find $CATALINA_HOME/conf/web.xml and look for the init-parameter named listings. Set this to false insead of true.

The above link explains it all.

No comments:

Post a Comment