This content has been marked as final.
Show 5 replies
-
1. Re: Handle default page (mixing mod_cluster with mod_rewrite
jfclere Jul 29, 2009 3:58 AM (in response to lowecg2004)you want / or /index.html to be mapped to your application in JBoss so it must be the ROOT webapp (server/default/deploy/ROOT.war), once it is working in JBoss directly you should remove the Rewrite directives.
-
2. Re: Handle default page (mixing mod_cluster with mod_rewrite
lowecg2004 Jul 29, 2009 4:25 AM (in response to lowecg2004)I already have the following in my web app:
<jboss-web> ... <context-root>/</context-root> <virtual-host>cluster.domain.com</virtual-host> </jboss-web>
Shouldn't that be enough? The context is working okay, it's just a question of getting a default document to be served.
I'll focus on getting this working directly...
Thanks for the reply.
Chris. -
3. Re: Handle default page (mixing mod_cluster with mod_rewrite
lowecg2004 Jul 29, 2009 5:20 AM (in response to lowecg2004)Fixed it.
In order for <welcome-file-list> to be recognised, web.xml file also needs to have an additional servlet mapping that matches with the welcome-file entry. For example:<servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/index.html</url-pattern> </servlet-mapping> ... <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list>
Not so obvious after all?
Cheers,
Chris. -
4. Re: Handle default page (mixing mod_cluster with mod_rewrite
jfclere Jul 29, 2009 5:23 AM (in response to lowecg2004)I have created a JIRA: MODCLUSTER-86
Note that is it only a related problem. -
5. Re: Handle default page (mixing mod_cluster with mod_rewrite
lowecg2004 Jul 29, 2009 5:31 AM (in response to lowecg2004)Cool - although I've managed to resolve my use case, having mod_cluster interact appropriately with mod_rewrite will be very handy.
Thanks for your time,
Chris.