You have to modify two files to make the server and your application listen to
www.mydomain.com instead of the ip address.
First add a virtual host to jboss-web.xml in WEB-INF folder of your application.
<context-root>/</context-root>
| <virtual-host>www.mydomain.com</virtual-host>
And then add the virtual host to jboss/server/xxx/deploy/jbossweb.sar/server.xml
<Host name="mydomain.com">
| <Alias>mydomain.com</Alias>
| <Alias>www.mydomain.com</Alias>
| </Host>
Your linux firewall doesn't have to redirect requests from 80 to 8080, you could
change the port number in the jboss/server/xxx/deploy/jbossweb.sar/server.xml
http://www.jboss.org/community/wiki/VirtualHostswithJBossAS
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253564#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...