This content has been marked as final.
Show 1 reply
-
1. Re: Migration from Glassfish: virtual servers
abhijithumbe Jan 30, 2018 4:51 AM (in response to william.mann)In wildfly you can configure virtual server/virtual host in undertow subsystem like as:
<host name="secondhost" alias="application1">
<access-log prefix="application1"/>
</host>and in jboss-web.xml of application define this host name, like as:
<jboss-web>
<virtual-host>secondhost
</virtual-host>
</jboss-web>Now if you hit
http://localhost:8080/
then request will send to the `default-host
` host and if you hit tohttp://
, that request will be routed to theapplication1
:8080/secondhost
host.