As I see in the httpd.conf
file some codes needs these wrappers Directory
, IfModule
, Files
, IfDefine
, Location
.. and some nothing. But I don't really understand what should I use where and why?
For example:
As I've seen some wrappers can have attributes like this, which should refer to /Applications/MAMP/htdocs
folder only :
<Directory "/Applications/MAMP/htdocs">
Options All
Order allow,deny
Allow from all
</Directory>
Unlike this:
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
This wrapper without an attribute maybe refers to all directories.
But would be good to know exactly how can I manage these modules, because it's confusing.