SERVER_NAME

Retrieves the hostname, DNS alias, or IP address of the Web server as it would appear in a self-referencing URL.

This variable is not request-specific; it is set for all requests.

Type and Usage

Output

Returns the server information as a string.

Example

As information output on a page or to a log:

SERVER_NAME=centralserver

As part of an Idoc Script statement or evaluation:

<$if SERVER_NAME$>
<!--statement-->