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

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

    This is a bug in current undertow subsystem implementation. It only properly processes default-web-module for default host and doesn't even take it into account for non default hosts.

    I created https://issues.jboss.org/browse/WFLY-3639 to track & fix it.

    as a workaround until this is fixed add

    jboss-web.xml to WEB-INF of your myapp2.war

    with content:

    
        other-host
        /
    
    

    which will tell server to what host & context root it should be bound to.

提交回复
热议问题