Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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
1  
Maybe more appropriate for serverfault.com? – Ian C. Sep 22 '10 at 14:27
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .