How can I disable directory listings for my web application?
In your domain’s default-web.xml, search for the definition of the servlet whose servlet-name is equal to default, and set the value of its init parameter with name listings to false. Redeploy your web application if it has already been deployed, in order for the new setting to take effect.
> Just change in default-web.xml true to false for listing param:
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
Yes, the setting is global. There is no per-directory granularity. Then I guess install Apache in front solve the issue.
* GlassFish Wiki, GlassFish Forum, Documentations and many more …..
https://glassfish.dev.java.net/
1 Comment »
Leave a Reply
-
Archives
- January 2011 (3)
- September 2010 (1)
- August 2010 (1)
- May 2010 (1)
- April 2010 (1)
- November 2009 (1)
- July 2009 (1)
- June 2009 (5)
- May 2009 (2)
- April 2009 (4)
- March 2009 (2)
- January 2009 (3)
-
Categories
-
RSS
Entries RSS
Comments RSS
[...] have a secure glassfish configuration, as also mentioned by hobione. [...]
Pingback by Glassfish security vulnerability at Thorleif Wiik | January 12, 2008 |