users@glassfish.java.net

how do you turn off directory listings?

From: <glassfish_at_javadesktop.org>
Date: Mon, 05 Nov 2007 12:42:23 PST

Hi All,

Fresh install Glassfish v2 (SJAS9.1) on Sparc Solaris 10, 0807.
(server runs as root)

Trying to figure out how to turn off directory listing...

I tried this... it didn't work.
http://blogs.sun.com/bounds/entry/turning_off_directory_listings_in

I set default-web.xml file in the config directory:
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>

Still got directory listings. Put index.jsp in directory for now - but I would really like to be able to disable the directory listing capability completely, if possible.

Also tried the above in application web.xml - but deployment didn't like it at al!

Appreciate any response/help.

Thanks,
- Dan
[Message sent by forum member 'htsguru' (htsguru)]

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