iTP Secure WebServer System Administrator's Guide (Version 7.0)
Configuration Directives
iTP Secure WebServer System Administrator’s Guide—523346-012
A-50
Description
you might want to deny access to a certain region in your server to a certain class of
users.
The Region directive allows you to apply the same access control to multiple objects
on your server; for example, all .cgi files.
You can use Tcl variables in Region directives to vary operation according to factors
like the time of day, the Web client host name, or HTTP header information. For more
information and examples, see Using Tcl Variables on page 7-40.
options
The Region directive takes two options:
-host host-addr
Use the -host option to cause a Region directive to be invoked only for
connections received on the IP address associated with host-addr.
-port port-num
Use the -port option to cause a Region directive to be invoked only for
connections received on the port-num.
These options allow you to designate specific regions as virtual hosts. For further
information about using multiple hosts, see Implementing Multiple-Host Support on
page 7-43.
URL-path
The URL pattern you specify can contain special characters for matching URL
patterns. These characters are listed in Table A-5 on page A-50.
The pattern-matching mechanism is the same as that used for file-name expansion in
UNIX shells. Table A-6 on page A-51 shows some examples.
Table A-5. URL Pattern-Matching Characters
Match Characters Description
* Matches any sequence of characters in string, including an empty
string.
? Matches any single character in string.
[chars] Matches any character in the set given by chars. If a sequence of
the form x-y appears in chars, and then any character between x
and y, inclusive, will match.
\x Matches the single character x. This method provides a way of
avoiding the special interpretation of the following characters in
pattern: * ? [ ] \