Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: restrict access to folder content |
|
Author |
|
oldcoot
Joined: 20 Feb 2006 Posts: 8
|
Posted: Wed 12 Apr '06 21:26 Post subject: restrict access to folder content |
|
|
For all folders in my root that do not have index pages I need to know how to setup Apache 2.0.55 to not show an "Index of" page displaying the folder contents and make it bring up some other page like access not allowed |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Wed 12 Apr '06 22:57 Post subject: |
|
|
Use the Options Directive.
Example:
Code: |
<Directory "C:/Apache2/htdocs">
#include other Options as necessary
Options -Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
|
The Options directive controls this via (+)(-) Indexes. If you just use for example:
It is the same as:
The CONTEXT for this directive is: server config, virtual host, directory, .htaccess.
. |
|
Back to top |
|
oldcoot
Joined: 20 Feb 2006 Posts: 8
|
Posted: Thu 13 Apr '06 1:48 Post subject: |
|
|
Thanks -- works great |
|
Back to top |
|
|
|
|
|
|