is AllowOverride working on all subfolders ?

For example, if I specify

<Directory />
AllowOverride None
</Directory>

Is it working on my entire filesystem or only the main folder ?

link|improve this question

Maybe more appropriate for serverfault.com? – Ian C. Sep 22 '10 at 14:27
feedback

1 Answer

up vote 2 down vote accepted

It applies to the entire tree under your document root unless some sub-tree also has a <Directory> tag set for it. For example, if you had:

/
    /foo
    /bar

And you said:

<Directory />
  AllowOverride None
</Directory>
<Directory /foo>
  AllowOverride Indexes
</Directory>

Then /foo would allow a .htaccess to set directory indexing, but /bar would not.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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