Fix Pack 8550

Setting the default host name of a Liberty server

You can add the defaultHostName variable to the server.xml file to set the default host name by which a Liberty server is identified.

About this task

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).

Notes:
  • 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.

Procedure

To set the default host name by which a Liberty server is identified, add the defaultHostName variable to the server.xml file.
For example:
<variable name="defaultHostName" value="localhost" />

Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Wednesday, 22 May 2013
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=tagt_wlp_set_defaulthostname
File name: tagt_wlp_set_defaulthostname.html