[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: URL problems using Apache, JBoss, mod_jk

rcjboss do-not-reply at jboss.com
Thu Oct 12 13:26:16 EDT 2006


The server.xml does not need to change. 
Once you have established connectivity between Apache and JBoss using ModJK, all you need is to make your application (.war) to be the default for the application server.
Normally ROOT.war in the tomcat sar is the default web app and hence you see the JBoss page containing links for web-console, jmx console etc.

First make sure that all your requests are being routed to JBoss from Apache: 
JKMount /* loadbalancer

Once you do this, and hit your domain.com you should get the default "Welcome to JBoss" page. 
This will make sure all http requests are being forwarded to JBoss.

Next just by adding the jboss-web.xml as mentioned to your .war will make sure that JBoss makes it the default.

Then you can test it by calling your domain.com or on jboss server - http://localhost:8080

you should get your .war files welcome page. Else you can invoke your other URLs in the .war (like /servlet/* or /*jsp etc).



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977944#3977944

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977944



More information about the jboss-user mailing list