iTP Secure WebServer System Administrator's Guide (Version 7.0)
Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrator’s Guide—523346-012
8-12
Passing CGI Environment Variables
SERVER_ADDR The IP address of the virtual host that accepted the
connection.
Format:
/dir1/dir2/program_name
Example:
/search/name.cgi
SERVER_NAME The server host name, DNS alias, or IP address as it
would appear in self-referencing URLs.
Format:
fully-qualified-domain-name
or
ip-address
Example:
www.company.com or 199.170.183.2
GATEWAY_INTERFACE The CGI specification to which this server complies.
Format:
CGI/revision
Example:
CGI/1.1
These environment variables are request specific.
SERVER_PROTOCOL The name and revision of the information protocol this
request came in with.
Format:
protocol/revision
Example:
HTTP/1.0
SERVER_PORT The port number to which the request was sent.
Format:
number-between-1-and-65535
Example:
80
Table 8-1. Environment Variables (page 2 of 6)
Environment Variable Description