Hi
We want to deploy an app (on JBoss 4.0.5) under the root context using a virtual host and a set of aliases...
The goal is to have app respond whenever a user enters any of the following:
http://www.mydomain.com
http://www01.mydomain.com
http://mydomain.com
In order to accomplish this I have:
1. set up DNS aliases www, www01 and * to point to same machine IP
2. created a host entry in /server/all/deploy/jbossweb-tomcat55.sar/server.xml
like so:
<Host name="www.mydomain.com" autoDeploy="false" deployOnStartup="true" deployXML="false"> <Alias>www</Alias> <Alias>www01.mydomain.com</Alias> </Host>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd"> <jboss-web> <context-root>/</context-root> <virtual-host>www.mydomain.com</virtual-host> </jboss-web>