Do you want to run the complete JBoss with a V-host binding?
Use 'run.sh -b <your host>' for this.
in order to set up new virtual hosts in tomcat (embedded web server in jboss), you have two options:
- add the corresponding host entries into server.xml. This is persistent across server restarts, but it also requires a full server restart in order to load the changes in server.xml (i.e. there is no hot reload of this config file).
- add them dynamically to tomcat/jboss instantly without restart by using the tomcat host manager (do not mix this with the tomcat manager - this is a complete different application). The tomcat host manager is not installed by default in jboss - you can either download and extract it from the original tomcat distribution, or - for your convenience - download it from our servers:
Install this war into your deployment directory in jboss (and configure it to your needs: security, ...).
Then, you can add the hosts dynamically by invoking simple web requests like this:
Beware, those dynamically added hosts are not persistent across jboss/tomcat restarts - so you have to add them to your server.xml file also.