Set the default host name of a Liberty server
We can add the defaultHostName variable to server.xml to set the default host name by which a Liberty server is identified.
This variable is available for use by service configurations. Setting this value is particularly important for multihomed systems (with multiple NICs and multiple mapped host names for example).
- This variable is currently used by the <httpEndpoint> host attribute and the <hostAuthInfo> rpcHost attribute
- The default host name should be the fully qualified host name of the system.
- The value should not contain any wildcards (* for example).
- The variable default is localhost.
To set the default host name by which a Liberty server is identified, add the defaultHostName variable to server.xml.
For example:
<variable name="defaultHostName" value="localhost" />
Parent topic: Set up the Liberty profileConcepts:
Collective architecture File transfer in a Liberty collective Collective security File transfer Liberty collective troubleshooting Tasks:
Configure a Liberty collective Register host computers with a Liberty collective Set the JAVA_HOME variable for Liberty collective members Configure Liberty collective replica sets Reference:
Example of setting up a JMX routing environment List of provided MBeans Overriding Liberty server host information