jQuery in Action, 2nd edition*
The moose likes Other Java Products and Servers and the fly likes Restrict Direct Listing 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 "Restrict Direct Listing" Watch "Restrict Direct Listing" New topic
Author

Restrict Direct Listing

Harish Tam
Ranch Hand

Joined: Feb 17, 2005
Posts: 71

Hello JavaRanchers

Got a simple problem regarding Sun One Application Server 7. I cannot find where in the server setting i can restrict the directory listing of a web application, like wise if i type in the URL http://something.com/foldername/
and is the folder does not have any index.html, index.htm, or index.jsp page then it lists all the files in that directory, i would like to disable this, can any one help me out with this.

Thanks and Regards
Harish


SCJP 1.4, SCWCD 1.4
Sultal
Greenhorn

Joined: Dec 02, 2002
Posts: 1
Use the admin server the following way:
1. In the left pane, for the application server instance, open HTTP Server.
2. Open Virtual Servers.
3. Click the name of the virtual server you want to edit.
4. Click the Doc Handling tab-->Document preferences-->Directory Indexing.
5. Choose "none".
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

"sultal",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Restrict Direct Listing
 
Similar Threads
java.rmi.server.codebase & java.rmi.server.hostname
Java Security
URLConnection
Resource not available with chinese characters
Having an NT problem