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

Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide523346-002
7-39
Using Tcl Variables
Table 7-2. Region Directive Variables
Variable Description
REMOTE_HOST Contains the name of the web client making the request. If no
reverse lookup is available, this variable is blank.
For example:
aegean.compedia.com
For information on reverse lookup, refer to Region
on page A-39.
REMOTE_ADDR Contains the IP address of the web client making the request.
For example:
199.170.183.5
PATH Contains the URL path for this request.
For example:
/home/index.html
QUERY_STRING Contains the query string (the text after the ? in the URL) for this
request.
METHOD Contains the method used for the current request. For example,
GET or POST.
MINUTE Contains the minute past the hour (range 0 to 59).
HOUR Contains the hour in local time (range 0 to 23).
WEEKDAY Contains the day of the week in the form of a numeric index (range 0
to 6). Sunday is day 0.
DAY Contains the day of the month (range 1 to 31).
MONTH Contains the month of the year (range 1 to 12).
YEAR Contains the year, measured in years since 1900.
HEADER Contains the contents of any HTTP headers sent by the web client.
This array variable’s indexes consist of the header names,
converted to lower- case, with no trailing colon. For example, the
HTTP header User-Agent: would be stored as HEADER(user-
agent).
SERVER_ADDR The IP address of the virtual host for the session.
SERVER_PORT The number of the port for the session.
SERVER_NAME The name associated with the address on which the connection was
received, as specified by the name argument of the Accept directive.
The name logged is the value of the -name or -address argument of
the Accept directive; if there is no (symbolic) name or address
argument, the name logged is the host name of the machine on
which the server is running.