Skip to main content

directory indexing

2 replies [Last post]
Anonymous

How do you turn off directory indexing for static pages served by
GlassFish (i.e. show "you are not allowed" instead of a formatted
listing of the directory's contents)?

--
____________________________________________________________
Glenn Holmer gholmer@weycogroup.com
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
km
Offline
Joined: 2005-10-28

This should be a FAQ entry.

You need to do two things:

- Modify the /config/default-web.xml to have:

listings false
instead of "true".

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

Regards,
Kedar

jluehe
Offline
Joined: 2004-12-01