I am trying to make my website accesible via www.gateway.example.com and also under gateway.example.com.
When I deploy my war with jboss-web.xml pointing to webhost host like this one, everything works:
<host name="webhost" alias="gateway.example.com" />
However, having multiple domains separate by whitespace in alias doesn't work and I get Error 404.
<host name="webhost" alias="gateway.example.com www.gateway.example.com"/>
Is there any solution to this ?
aliases need to be comma separated not white space separated.
use
<host name="webhost" alias="gateway.example.com, www.gateway.example.com"/>
I have updated documentation about this.