users@glassfish.java.net

Re: how do you turn off directory listings?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 05 Nov 2007 16:24:47 -0500

Hi,

my guess is you first need to undeploy your application, and then
redeploy the same app so default-web.xml changes are taken into account.

Thanks

-- Jeanfrancois

glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>