<Location>sections are processed in the
order in which they appear in the configuration file, after the
.htaccess files, and
<Files>sections have been interpreted.
The <Location>section is the directive that
is used most often with mod_perl.
Note that URIs do not have to refer to real directories or files
within the filesystem at all; <Location>
operates completely outside the filesystem. Indeed, it may sometimes
be wise to ensure that <Location>s do not
match real paths, to avoid confusion.
The URI may use wildcards. In a wildcard string, ?
matches any single character, * matches any
sequences of characters, and [ ] groups characters
to match. For regular expression matches, use the
<LocationMatch regex> ...
The <Location> functionality is especially
useful when combined with the SetHandler
directive. For example, to enable server status requests (via
mod_status) but allow them only from browsers at
*.example.com, you might use:
Deny from all
Allow from .example.com
As you can see, the /status path does not exist
on the filesystem, but that doesn't matter because
the filesystem isn't consulted for this
request—it's passed on directly to mod_status.