logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: restrict access to folder content
Author
oldcoot



Joined: 20 Feb 2006
Posts: 8

PostPosted: Wed 12 Apr '06 21:26    Post subject: restrict access to folder content Reply with quote

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

PostPosted: Wed 12 Apr '06 22:57    Post subject: Reply with quote

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:

Quote:
Options Indexes


It is the same as:

Quote:
Options +Indexes


The CONTEXT for this directive is: server config, virtual host, directory, .htaccess.
.
Back to top
oldcoot



Joined: 20 Feb 2006
Posts: 8

PostPosted: Thu 13 Apr '06 1:48    Post subject: Reply with quote

Thanks -- works great
Back to top


Reply to topic   Topic: restrict access to folder content View previous topic :: View next topic
Post new topic   Forum Index -> Apache