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
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.