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

后端 未结 3 1166
暖寄归人
暖寄归人 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:44

    I tested a setup similar to yours on Ubuntu 14.04 with WildFly 8.1.0.Final and Firefox 30, and for me, it works after adding a WEB-INF/jboss-web.xml to one my wars:

    
        other-host
    
    

    I defined two different host aliases for the same IP in my /etc/hosts, and my browser gets redirected to the different web apps for http://alias1:8080 and http://alias2:8080 as expected.

提交回复
热议问题