[ Spunki @ 29.07.2003. 10:15 ] @
imam redhat 9.0 i zanima me kako da izkljucim directory browsing da ne moze niko da vidi sta je u direktoriju nekom.... ako moze ko da pomogne...
[ Jbyn4e @ 29.07.2003. 17:31 ] @
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.

[ Spunki @ 30.07.2003. 09:27 ] @
Bas sam vec juce to sredio sa ovim
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>

hehhehe tako da svejedno hvala na pomoci ako se nebi snaso pomoglo bi mi...