2.3.7 <Location>
<Location> specifies directives that are applied only for a specific URL.
Description
<Location> specifies directives that are applied only for a request sent to a specific URL. Note that for URL, you cannot specify the part after a question mark (?) (the query character string) of the URL.
Syntax
<Location URL> directive [directive ...] </Location>
Locations where it can be written
httpsd.conf and <VirtualHost>
Example
<Location /server-status> ...1. SetHandler server-status ...2. Order deny,allow ...3. Deny from all ...4. Allow from .your_domain.com ...5. </Location> ...6.
-
Definition of URL /server-status
-
Associates the requests of this directory with the server-status handler
-
Evaluates the specification of the Deny directive earlier than the specification of the Allow directive
-
Does not allow access from all hosts
-
Allows access from your_domain.com
-
End of the definition