Directory Options
If you had Directory options, note that they all have to be prepended with a +
or -
or none of them at all. A mix of both is not allowed:
Example:
This is allowed:
<Directory /path/to/your/site/>
Options +Indexes +FollowSymLinks -MultiViews
</Directory>
So is this (Note that these examples don't both do the same thing, the previous one disables the MultiViews
option, the next one doesn't):
<Directory /path/to/your/site/>
Options Indexes FollowSymLinks MultiViews
</Directory>
This is no longer allowed:
<Directory /path/to/your/site/>
Options Indexes FollowSymLinks -MultiViews
</Directory>
Last config option will throw the a syntax error saying:
Either all Options must start with + or -, or no Option may.
访问网址提示:500错误