iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)

Configuration Directives
iTP Secure WebServer System Administrator’s Guide—523346-002
A-41
Region Commands
URL-path
The URL pattern you specify can contain special characters for matching URL
patterns. These characters are listed in Table A-5.
The pattern-matching mechanism is the same as that used for file-name expansion in
UNIX shells. Table A-6 shows some examples.
Region Commands
A Region directive controls access by applying one or more special control
commands, called Region commands, to the region on the server that matches the
URL path specified in the directive. The Region commands you can specify are as
follows:
AddCGI env-var value
The AddCGI command sets a specified CGI environment variable (env-var) to a
default (value) for all CGI programs in a given region. For example:
Region /* {
AddCGI CGI_LIBRARY /usr/tandem/webserver/lib
}
In this example, environment variable CGI_LIBRARY is set to
/usr/tandem/webserver/lib for all CGI programs within the region /*.
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, 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: * ? [ ] \
Table A-6. URL Pattern-Matching Examples
Match Pattern Description
/admin/* This pattern matches any URL path that begins with the string
/admin/.
*.cgi This pattern matches any URL path that has the extension.cgi.
/images/*.gif This pattern matches any URL path that has the extension.gif in
or under the images directory.