Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listing directories

Status
Not open for further replies.

roeiboot

Technical User
Feb 10, 2002
241
US
oi~

what do i need to change if i want to give users (visitors of my website) access to certains directories without a index.html, i mean so they get the filelisting of that directory/folder, they now get a 403 - Access forbidden!

thanks in advance,
 
Assuming you have mod_autoindex installed in Apache (which you should by default)

Then the directive:

[tt]<Directory /foo/bar/sna/foo>
Options +Indexes
IndexOptions FancyIndexing FoldersFirst
</Directory>
[/tt]

Should do it. Take a look at other IndexOptions directive at ______________________________________________________________________
Did you know?
The quality of our answers is directly proportional to the number of stars you vote?
 
hi.. where do i check the mod_autoindex ?? and do i add each directory seperatly like your example ?

-cut-
#
# FancyIndexing is whether you want fancy directory indexing or standard.
# VersionSort is whether files containing version numbers should be
# compared in the natural way, so that `apache-1.3.9.tar' is placed before
# `apache-1.3.12.tar'.
#
IndexOptions FancyIndexing VersionSort
-cut-

that's what's in my httpd.conf.

thanks dude.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top