aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Hiding directory listings in Sun Java System Application Server Platform Edition 9.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Hiding directory listings in Sun Java System Application Server Platform Edition 9.0" Watch "Hiding directory listings in Sun Java System Application Server Platform Edition 9.0" New topic
Author

Hiding directory listings in Sun Java System Application Server Platform Edition 9.0

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Can anyone help me with hiding the directory listing sunder Sun Java System Application Server Platform Edition 9.0?

when you type in say:
http://localhost/secure/

I'd appreaciate NOT seeing the JSPS, subfolders and javascript files!!!

PS, I doin't mean "try adding a index.html" page to EVERY folder too (as has been suggested to me), I'm sure there must be a simple way of switch 'show directory listsing' off or something.

Cheers
[ January 14, 2008: Message edited by: Keith Seller ]
Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Sorted it!

Edit the default-web.xml file under
...\AppServer\domains\domain1\config\ change the 'listing' param to FALSE
[ January 14, 2008: Message edited by: Keith Seller ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiding directory listings in Sun Java System Application Server Platform Edition 9.0