Locationmatch, Limit, Limitexcept – Oracle B12255-01 User Manual

Page 36: Locationmatch> -6 <limit> -6 <limitexcept> -6

Advertising
background image

Scope of Directives

2-6

Oracle HTTP Server Administrator’s Guide

<LocationMatch>

Functions in an identical manner to

<Location>

and you should use it for

specifying regular expressions instead of the tilde form of <Location> with
wildcards in the location specification.

For example:

<LocationMatch "/(extra|special)/data">

matches the URLs that contained the /extra/data or /special/data sub
string.

<Limit>

<Limit method> defines a block according to the HTTP method of the incoming
request. The following example limits the application of the directives that follow
scripts that use the specified method:

<Limit POST PUT OPTIONS>

order deny, allow

deny from all

allow from 127.0.0.192.168

</Limit>

Generally, <Limit> should not be used unless needed. It is useful only for
restricting directives to particular methods. <Limit> is frequently used with other
containers, and it is contained in any of them.

<LimitExcept>

Restrict access controls to all HTTP methods except the named ones.

Advertising