Information
Isolate JMX communication and application traffic using separate virtual hosts for applications.
Use separate ports using virtual hosts to decouple JMX and applications communication.
Solution
Ensure the following to enable virtual hosting.
- Configure the application with virtual-host name in the enterpriseApplication or webApplication elements in the [Liberty configuration] ${server.config.dir}/configDropins/overrides/*.xml
<webApplication ... >
<web-bnd virtual-host name="myApplication1"/>
</webApplication>
Note: The virtual-host name can also be set in the ibm-web.bnd.xml file in the application.
<xhtml:ol start="2"> - Configure the application to use the specific virtual host in ${server.config.dir}/configDropins/overrides/*.xml
<virtualHost id="myApplication1">
<hostAlias>your_host_name:9080</hostAlias>
</virtualHost>