Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-12-2005, 04:00 PM   #1
Registered: Feb 2004
Location: Nashville Tn
Distribution: adsf
Posts: 34

Rep: Reputation: 15
Apache Directory

How do I tuen off Directory listing.. I was looking in the conf files but I did not see any funtchion...
Old 10-12-2005, 04:21 PM   #2
Senior Member
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
In the directory section or .htaccess file if your server is configured to read the .htaccess add
Options -Indexes
Old 10-12-2005, 04:30 PM   #3
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
You can do the same thing in your http.conf if you don't use .htaccess.

...just remember "Options -Indexes" in the directory you want
Old 10-12-2005, 04:33 PM   #4
Registered: Oct 2005
Posts: 51

Rep: Reputation: 16
You can make this a global setting in your /etc/apache2/commonapache2.conf. Just find the section starting with
### This should be changed to whatever you set DocumentRoot to.
Find the Options directive and set -Indexes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 07:03 AM
Apache directory Confusion Raggit Linux - Software 23 02-16-2005 04:50 PM
apache list directory linuxtesting2 Linux - Networking 5 09-24-2004 04:46 PM
apache directory Longinus Linux - Software 2 04-05-2004 06:37 AM
Apache directory... Z28kid Linux - Newbie 9 02-17-2003 06:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration