This content has been marked as final.
Show 3 replies
-
1. Re: Would I use mod_jk to do this...?
rcjboss Oct 2, 2006 1:05 PM (in response to dsmiller)Yes, you can configure mod_jk to forward all the requests to JBoss.
In order to achieve "www.domain.com" you would need to either
1. Document root/context root of your war to be the default.
or
2. Deploy your war by renaming as root.war and renaming the JBoss' console war to something else. This would be located JBoss' Tomcat deployment. -
2. Re: Would I use mod_jk to do this...?
dsmiller Oct 2, 2006 2:45 PM (in response to dsmiller)"rcjboss" wrote:
Yes, you can configure mod_jk to forward all the requests to JBoss.
In order to achieve "www.domain.com" you would need to either
1. Document root/context root of your war to be the default.
or
2. Deploy your war by renaming as root.war and renaming the JBoss' console war to something else. This would be located JBoss' Tomcat deployment.
Thank you rcjboss.
I'm using your first suggestion but I'm not really sure that I know what you mean. I think you mean that I should change where DocumentRoot points. When I point it at the root dir of my webapp, Apache displays a default index.html file found in the original DocumentRoot instead of the index.jsp found in the root of my webapp.
Setting documentRoot to the base dir of my webapp seems to be entirely outside of mod_jk. I'm not sure where to go next.
Here's the virtual host tag from httpd.conf:<VirtualHost *:80> DocumentRoot /usr/local/jboss/server/default/deploy/webapp.war ServerName domain.com ServerAlias www.domain.com </VirtualHost>
Note: The .war file has been extracted -
3. Re: Would I use mod_jk to do this...?
rcjboss Oct 3, 2006 11:50 AM (in response to dsmiller)Hi,
In the war file that you want to be default, add a file in "WEB-INF" folder as "jboss-web.xml" with the following:
<jboss-web>
<context-root>/</context-root>
</jboss-web>
JBoss should pick your app as the default and will show the default page of your war.