Information
Isolate applications by configuring separate virtual hosts.
Use separate ports using virtual hosts to decouple access to different applications.
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>