tomcat serving static content with directory listings

Posted by milan on Pro Webmasters See other posts from Pro Webmasters or by milan
Published on 2012-11-14T09:55:50Z Indexed on 2012/11/14 11:19 UTC
Read the original article Hit count: 263

Filed under:

I have tomcat 7 configured to serve static contents from a directory:

<Host appBase="webapps" name="localhost">
    ...
    <Context docBase="/var/projectA/static" path="/projectA/" />
</Host>

This is available at localhost:8080/projectA/. Is it possible to somehow enable directory listings for this context?

I know it's possible to do this with apache in front of tomcat, but that's not what I'm looking for.

p.s. there's no 'tomcat' tag and my rep doesn't allow me to create tags...

© Pro Webmasters or respective owner

Related posts about website-deployment