Is there a way to configure an application deployed to JBoss to be deployed on the root context?
I've set up JBoss behind an Apache 2.2.3 server using mod_proxy. I can access the application via:
But I want to just go to http://www.somedomain.com. I've tried setting up the httpd so that
ProxyPass / balancer://www.somedomain.com/myApp
But that doesn't work. I've read this wiki page (http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMod_proxyWithJBoss) and it said:
Note: If you are using the Apache 2.2.2 binary don't specify the root for load balancing. For example
ProxyPass / balancer://mycluster nofailover=On
this will fail due to bug in Apache 2.2.2 binary. However if you take latest code from SVN head this works. I have not tested this in apache head.
Not sure if this is what you are looking for, but you could add a context-root entry to your jboss-web.xml file, as follows:
<jboss-web> <context-root>/</context-root> </jboss-web>