Wildfly / Undertow : Multiple aliases for one host

喜欢而已 提交于 2019-12-21 13:43:12

问题


In standalone/configuration/standalone-full.xml, I've declared the following host, that works

<host name="webhost" alias="gateway.example.com" />

When I try to add another alias, I'm given Error 404.

<host name="webhost" alias="gateway.example.com www.gateway.example.com"/>

The DOCUMENTATION says list of aliases is whitespace separated.


回答1:


There was a bug in documentation. It is comma separated list of hosts not white space separated.

example would be

<host name="default-host" alias="localhost, some.host" >

I also fixed documentation to to address this



来源:https://stackoverflow.com/questions/24998406/wildfly-undertow-multiple-aliases-for-one-host

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