This section explains the directives of block definition in the order of reference:
Specify the <Directory> directive when defining the directive for a specific directory. You can specify the name of the directory in the directory-name and specify the blocks that define directives valid only for that directory and its sub-directories.
Specify the directory name with an absolute path.
httpsd.conf, <VirtualHost>
<Directory /> ...1.
Options None ...2.
AllowOverride None ...3.
</Directory> ...4.
<Directory "<Cosminexus-installation-directory>/httpsd/htdocs"> ...5.
Options Indexes ...6.
AllowOverride None ...7.
Order allow,deny ...8.
Allow from all ...9.
</Directory> ...10.
Specify the <DirectoryMatch> directive when defining directives for a directory that satisfies the conditions described in the regular expressions. You can specify the directory name with regular expressions, and specify the blocks that define directives valid only for that directory and its sub-directories.
Specify the directory name in the regular expressions using an absolute path.
httpsd.conf, <VirtualHost>
Specify <Files> directive when defining directives for specific files. You can specify the name of files in the file name and specify the blocks that define directives valid only for that file.
httpsd.conf, <VirtualHost>, <Directory>, .htaccess
Specify the <FilesMatch> directive when defining directives for files that satisfy the condition described in the regular expressions. You can specify the file name with regular expressions and specify the blocks that define the directives valid only for that file.
httpsd.conf, <VirtualHost>, <Directory>, .htaccess
If the specified module is embedded, the directives specified in the block are enabled. If "!" (exclamation mark) is added before the module name, and if the specified module is not embedded, the directives specified in the block are enabled.
httpsd.conf, <VirtualHost>, <Directory>, .htaccess
Specify the <Limit> directive when defining directives for a specific HTTP protocol method. You can specify the blocks that define the access control directives valid only for the methods specified in method name. You can specify multiple method names.
method-name: GET, POST, PUT, DELETE, CONNECT, OPTIONS
(HEAD is included in GET)
httpsd.conf, <VirtualHost>, <Directory>, .htaccess
<Directory />
<Limit PUT DELETE> ...1.
Order deny,allow ...2.
Deny from all ...3.
Allow from .your_domain.com ...4.
</Limit> ...5.
</Directory>
Specify the <Location> directive when defining the directives for the request to the locations described in the specific URL. However, you cannot specify the characters from ? (query string) onwards in the URL.
httpsd.conf, <VirtualHost>
<Location /server-status> ...1.
SetHandler server-status ...2.
Order deny,allow ...3.
Deny from all ...4.
Allow from .your_domain.com ...5.
</Location> ...6.
Specify the <LocationMatch> directive when defining the directives for the request to the URL that satisfies the conditions described in the regular expressions. However, you cannot specify the characters from ? (query string) onwards in the URL.
httpsd.conf, <VirtualHost>
Specify the <VirtualHost> directive when defining the directives for the request to the host described in host name or the IP address [:Port number].
Note that the host names corresponding to IPv6 addresses can also be specified. When specifying an IPv6 address for IP-address, enclose the IPv6 address in square brackets ([ ]).
httpsd.conf
<VirtualHost 172.17.40.30:80>
:
</VirtualHost>
<VirtualHost [2001::123:4567:89ab:cdef]:80>
:
</VirtualHost>