users@glassfish.java.net

Re: directory indexing

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Dec 2007 18:33:16 PST

This should be a FAQ entry.

You need to do two things:

- Modify the <domain-folder>/config/default-web.xml to have:
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>
  instead of "true".

- Redeploy the application for which you want to turn off the directory listing.

Regards,
Kedar
[Message sent by forum member 'km' (km)]

http://forums.java.net/jive/thread.jspa?messageID=250676