Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


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.
  1. Definition of URL /server-status

  2. Associates the requests of this directory with the server-status handler

  3. Evaluates the specification of the Deny directive earlier than the specification of the Allow directive

  4. Does not allow access from all hosts

  5. Allows access from your_domain.com

  6. End of the definition