Wildfly / Undertow:一个主机的多个别名 [英] Wildfly / Undertow : Multiple aliases for one host
本文介绍了Wildfly / Undertow:一个主机的多个别名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 standalone / configuration / standalone-full.xml 中,我宣布了以下主机,正常工作
In standalone/configuration/standalone-full.xml, I've declared the following host, that works
<host name="webhost" alias="gateway.example.com" />
当我尝试添加另一个别名时,我收到错误404.
When I try to add another alias, I'm given Error 404.
<host name="webhost" alias="gateway.example.com www.gateway.example.com"/>
DOCUMENTATION 表示别名列表是以空格分隔的。
The DOCUMENTATION says list of aliases is whitespace separated.
推荐答案
文档中存在错误。它是逗号分隔的主机列表,不是空格分隔。
There was a bug in documentation. It is comma separated list of hosts not white space separated.
示例将是
<host name="default-host" alias="localhost, some.host" >
我还修复了文件来解决这个问题
I also fixed documentation to to address this
这篇关于Wildfly / Undertow:一个主机的多个别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文