Hobione's Weblog

Living & Breathing in Web 2.0 Era

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/ 

Advertisements

January 12, 2008 - Posted by | GlassFish

1 Comment »

  1. […] have a secure glassfish configuration, as also mentioned by hobione. […]

    Pingback by Glassfish security vulnerability at Thorleif Wiik | January 12, 2008 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: