Take the 2-minute tour ×
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
</Directory>

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

share|improve this question
    
Maybe more appropriate for serverfault.com? –  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:

/
    /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.

share|improve this answer

Your Answer

 
discard

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.