-
1. Re: setting default-web-module on virtual host of undertow subsystem
ctomc Oct 13, 2013 4:15 AM (in response to dbschofield)Hi,
does it work for default-host? basically with this configuration:
<server name="default-server">
<ajp-listener name="ajp" max-post-size="10485760" socket-binding="ajp"/>
<http-listener name="default" max-post-size="10485760" socket-binding="http"/>
<host name="default-host" alias="localhost, www.myhost.com" default-web-module="jee7.war" />
</server>
just want to cover all bases
-
2. Re: setting default-web-module on virtual host of undertow subsystem
dbschofield Oct 13, 2013 1:48 PM (in response to ctomc)does it work for default-host?
Yes, it is working with the default host using the config you listed.
However, this won't handle the use case of multiple hosts each having their own default-web-module.
-
3. Re: setting default-web-module on virtual host of undertow subsystem
ctomc Oct 13, 2013 5:43 PM (in response to dbschofield)Great
Can you file a jira issue, i will dig into this in coming days.
tnx.
-
4. Re: setting default-web-module on virtual host of undertow subsystem
ctomc Oct 14, 2013 3:59 AM (in response to ctomc)I spoke too soon.
do you map your application to virtual host with configuration in your jboss-web.xml?
you would need
<virtual-host>name-of-your-host-in-standalone-xml</virtual-host>
this way you tell deployer what virtual host it should map application to.
By default it will deploy it to host that is configured by "default-host" attribute on server element.
--
tomaz
-
5. Re: setting default-web-module on virtual host of undertow subsystem
dbschofield Oct 17, 2013 9:27 PM (in response to ctomc)I spoke too soon.
do you map your application to virtual host with configuration in your jboss-web.xml?
you would need
<virtual-host>name-of-your-host-in-standalone-xml</virtual-host>
this way you tell deployer what virtual host it should map application to.
By default it will deploy it to host that is configured by "default-host" attribute on server element.
That is what was missing. Adding and configuring the virtual-host in the jboss-web.xml allowed the undertow config to work.