Changing the Hostname¶
By default, WSO2 products identify the hostname of the current machine through the Java API. However, it is recommended to configure the hostname by setting the hostname parameter in the deployment.toml file of the Micro Integrator runtime.
Changing the Micro Integrator hostname¶
Follow the steps given below.
- Open the
<MI-HOME>/conf/deployment.tomlfile -
Define the
hostnameattribute under server configuration as shown below.[server] hostname = "{hostname}"[server] hostname="localhost"
To configure hostnames for WSDLs and endpoints, it is recommended to add the following parameter for the transport listener in the deployment.toml file.
[transport.http]
listener.wsdl_epr_prefix="$ref{server.hostname}"