Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

is AllowOverride working on all subfolders ?

For example, if I specify

<Directory />
AllowOverride None

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

share|improve this question
Maybe more appropriate for – Ian C. Sep 22 '10 at 14:27

1 Answer 1

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:


And you said:

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

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

share|improve this answer

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.