[jboss-user] [Installation, Configuration & Deployment] - Re: jboss website as default site

EMeuwese do-not-reply at jboss.com
Fri Sep 4 08:05:40 EDT 2009

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.
  | <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


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253564#4253564

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253564

More information about the jboss-user mailing list