This content has been marked as final.
Show 5 replies
-
1. Re: jboss website as default site
hand-solo Aug 24, 2009 6:21 PM (in response to hand-solo)ok, I think I have it figured out now, I just changed the index.html page in the ROOT.war directory.
I changed it to a jsp page that redirects to my site name. -
2. Re: jboss website as default site
hand-solo Aug 24, 2009 6:28 PM (in response to hand-solo)another question, how do u clear the jboss cache? I made a mistake in the typing of my redirect, I have fixed the jsp page but it's still using the old jsp page
any ideas? -
3. Re: jboss website as default site
aeurielesn Aug 24, 2009 9:53 PM (in response to hand-solo)"hand-solo" wrote:
Redeploying?
another question, how do u clear the jboss cache? I made a mistake in the typing of my redirect, I have fixed the jsp page but it's still using the old jsp page
any ideas? -
4. Re: jboss website as default site
hand-solo Aug 25, 2009 5:14 PM (in response to hand-solo)i don't want to restart the jboss server, is it possible to deploy considering the index.jsp lies in the web-deployer ROOT.war directory?
-
5. Re: jboss website as default site
emeuwese Sep 4, 2009 8:05 AM (in response to hand-solo)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