WildFly -> Undertow -> mapping subdomain to war file not working

后端 未结 3 1109
暖寄归人
暖寄归人 2021-01-13 11:05

WildFly 8.1.0 Final Windows Server 2012 R2

I have two sub-domains pointing at this server, and I want requests to each sub-domain to trigger a different war file

3条回答
  •  走了就别回头了
    2021-01-13 11:52

    default-host is the virtual host that will be used if an incoming request as no Host: header. So to get the requests to your other server, the request sent by the client should have "Host: other-host" in the request header.

    A sample HTTP request from client looks like,

    GET /Some/Resource HTTP/1.1
    Accept: ....
    Host: other-host
    ....
    ....
    

    See if this works.

提交回复
热议问题