2.3.1 <Directory>
<Directory> defines directives that are applied only for a specific directory.
Description
<Directory> defines directives that are applied only for a specific directory. You can specify a directory name in directory_name and then specify directives that are applied only for the specified directory and subdirectories.
Specify directory name as an absolute path.
Syntax
<Directory directory_name> directive [directive ...] </Directory>
Locations where it can be written
httpsd.conf and <VirtualHost>
Example
<Directory /> ...1. Options None ...2. AllowOverride None ...3. </Directory> ...4. <Directory "installation_directory_for_Application_Server/httpsd/htdocs"> ...5. Options Indexes ...6. AllowOverride None ...7. Order allow,deny ...8. Allow from all ...9. </Directory> ...10.
-
Defines the root directory
-
Disables all functionalities
-
Prohibits all overwriting
-
End of the definition
-
Defines the directory installation_directory_for_Application_Server/httpsd/htdocs
-
Permits directory index to be displayed
-
Prohibits all overwriting
-
Evaluates the Allow directive specification before the Deny directive
-
Permits access from all hosts
-
End of the definition