Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Does this syntax prevent indexes to be visable in var/www?

 <Directory "/var/www">
   Options FollowSymLinks
   AllowOverride All
   Order allow,deny
   Allow from all
 </Directory>

or do is "Options -Indexes" required in httpd.conf or .htaccess?

share|improve this question

closed as not a real question by Michael Hampton, Alex, mdpc, Ward, MadHatter Jan 10 '13 at 7:09

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer 1

Not trying to be mean, but Have you read the Apache Manual?

Relevant text:

Normally, if multiple Options could apply to a directory, then the most specific one is used and others are ignored; the options are not merged. (See how sections are merged.) However if all the options on the Options directive are preceded by a + or - symbol, the options are merged. Any options preceded by a + are added to the options currently in force, and any options preceded by a - are removed from the options currently in force.

It's a bit dense, but what it's saying is essentially "either will work, as long as there is no Options directive later that overrides it". If you want to be certain, you should specify -Indexes for each directory you want to protect.

share|improve this answer
add comment

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