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!

Public_html + listing 1

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
How do i allow users on my linux server to be able to list directories? If you try to access a directory without a index.htm it just says forbidden access, but if there is a index.htm file there it will load that.

Any Ideas?
 
Hi,

You would use the 'Indexes' option within the directory container in httpd.conf or htaccess file (you'd have to allow overrides for the latter). For example :

<Directory /var/Options +Indexes
</Directory>

That would give a listing of files in the directory providing there was no DirectoryIndex file present (e.g., index.html) .

You would probably also want to have the following set globally :

IndexOptions FancyIndexing

Hope this helps
 
THanks .. i just added Options Indexes MultiViews to the Directory part and it works great. THanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top