Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

given that Apache applies <Location> directives AFTER <Files> directives, how would one apply a "require all granted" to a single file in a location? in the below wxample, I want the rss feed to be public, while everything else is restricted...

Or will this have to be changed to a <Directory> instead?


<Location "/doku">
    Options FollowSymLinks
    Order deny,allow
    Allow from all
    AuthBasicProvider ldap
    AuthLDAPURL  --------
    AuthLDAPBindDN   --------
    AuthLDAPBindPassword -------
    AuthType Basic
    AuthName "test"
    Require ldap-user user
<Files "/doku/feed.php">
    Allow from all
    require all granted
share|improve this question
up vote 1 down vote accepted

Require all granted is 2.4 config, while Order/Allow/Deny is 2.2 config - which are you on?

Assuming it's 2.2, try this:

<Directory /path/to/doku>
    # all the existing config
    <Files feed.php>
        Satisfy any
share|improve this answer
"Most importantly, <Location> directives should not be used to control access to filesystem locations", a quote from – FINESEC Nov 9 '12 at 11:20
@FINESEC Well, that only matters when multiple locations point to a single filesystem location, where you want the resources controlled from a filesystem perspective.. but fair enough, edited. – Shane Madden Nov 10 '12 at 7:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.