Not able to deploy multiple war packages to different hosts listening to different ports on Wildfly 8.1.0 Final?

家住魔仙堡 提交于 2019-12-04 20:08:18
Gimby

A bit of history for this answer taken from the comments to complete the picture.

  • The configuration setup for this question is taken from this existing off-site question and answer in the JBoss forums, which is a clear indication there is little wrong with the setup as it is; the proper configuration is in place, there is simply something that still needs to be re-configured in it. https://developer.jboss.org/message/857103

  • With a little comparison, the only difference that could be spotted was that the host alias configuration was different (localhost -> localhost2). However the source material in the above JBoss forum thread is not configured for production deployment, it is a setup for development on the localhost. This question IS about deploying the server in production behind a proper domain name. So that's where the missing link is to be found.

  • As this existing related stackoverflow question indicates, you need to put the proper host name in the alias to make it work. Wildfly / Undertow : Multiple aliases for one host

And that was ultimately the solution to this problem too; add the domain name to the host alias.

<host name="mylocal-host" alias="localhost2, my.domainname.com">
  ...
</host>
Arnab Biswas

In my case (here), I had to add "default-host" for the virtual server (In addition to whatever is suggested in the other answer).

<server name="jolokia-server" default-host="jolokia-host">

Otherwise, I was not able to access the service on the different port from outside the system. Here you can find out the complete configuration.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!