Treba malo citati uputstva ili pogledati sajt proizvodjaca... (nece da zove, vidim ja)
Evo iz komentara httpd.conf:
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing. Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
Znaci, ako stavis * trebalo bi da ti ne napise nista.
Drugo, sa sajta proizvodjaca (
www.apache.org) imas, sa adrese:
http://httpd.apache.org/docs/misc/FAQ.html
Citat:
How do I turn automatic directory listings on or off?
If a client requests a URL that designates a directory and the directory does not contain a filename that matches the DirectoryIndex directive, then mod_autoindex can be configured to present a listing of the directory contents.
To turn on automatic directory indexing, find the Options directive that applies to the directory and add the Indexes keyword. For example:
<Directory /path/to/directory>
Options +Indexes
</Directory>
To turn off automatic directory indexing, remove the Indexes keyword from the appropriate Options line. To turn off directory listing for a particular subdirectory, you can use Options -Indexes. For example:
<Directory /path/to/directory>
Options -Indexes
</Directory>
Treci (jednostavniji) nacin - stavis recimo prazan index.html u taj direktorijum koji neces da se vidi sta ima u njemu.
Kad sve ostalo zakaže, pročitaj uputstvo...