What is the easiest way to direct a user who tries to get to our host away from the "Welcome to JBoss" page?
It has been suggested that we use a virtual host, but I find the JBoss documentation very confusing and lacking in details. Also it appears that we would have to make changes to application configuration files which would need to be changed every time we deployed on test and then deployed on production. Any suggestions on a better method or directions to some clear explanation of how to set up a virtual host on JBoss if that's the only way to get rid of this page. Neither the docs at http://docs.jboss.org/jbossas/guides/webguide/r2/en/html/ch07.html or the wiki offer comprehensible details.
Hmm, no mention of which version of JBoss AS, so I'll assume 5.0.x. If you want to get rid of the JBoss AS welcome page, remove the directory server/xxx/deploy/ROOT.war. If you want your app's main page to use the root context, add a context-root entry to WEB-INF/jboss-web.xml to your WAR file:
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/</context-root> </jboss-web>
Whoops. sorry. It's version 4.01, which has root.war under jbossweb-tomcat50.sar. I assume the jboss-web.xml solution will work with that version. I assume removing root.war from the location or doing the application solution you suggest will work for 4.01. If those assumptions are incorrect, please let me know.