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!

Apache web content permissions

Status
Not open for further replies.

egmweb

Programmer
Mar 19, 2004
147
EU
Hello Guys.

I'm new on Apache, please help me with this issue.

I have and when I enter this address to an internet browser, some folders and files appear like a tree.

How can I do to change that??

I need to set the error 403 Forbidden, to all domains which doesn't have any website in root folder.

Thanks you.
 
There are a few ways to acomplish this, but to disable directory listing globally, add something like this to your httpd.conf file
Code:
<Directory "/">
        Options -Indexes
        AllowOverride None
</Directory>
 
You can also provide a default document to fit the DirectoryIndex specification. Then that page will come up instead of the default listing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top