Oracle B12255-01 Manuale Utente

Pagina di 224
Scope of Directives
2-6
Oracle HTTP Server Administrator’s Guide
<LocationMatch>
Functions in an identical manner to
 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.