new to JBoss and am configuring some applications. I know how to do this in apache webserver, but not using Jboss.
I have successfully deployed 3 applications on a redhat box, JBoss 4.2.
If my server is called fruit.mycompany.com, I can access the three apps this way:
http://fruit.mycompany.com:8080/quince
http://fruit.mycompany.com:8080/pineapple
http://fruit.mycompany.com:8080/lime
Next, I created three subdomains, which are aliases of the server fruit.
http://quince.mycompany.com
http://pineapple.mycompany.com
http://lime.mycompany.com
How can I get each subdomain to point at it's corresponding application?
I want http://quince.mycompany.com to actually open http://fruit.mycompany.com:8080/quince.
In apache, I would use the VirtualHost tag to point each subdomain to the correct Document Root. How do I do it with JBoss or Tomcat?
Can I do it with redirection ( does Tomcat have something like mod_rewrite )?