You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Bydalek <mb...@compunetconsulting.com> on 2006/05/02 17:55:55 UTC
mod_jk Submounts
Good Morning,
I have an interesting problem that's I'm trying to solve using mod_jk,
but not having any luck.
Basically we have 3 webapps where one is the primary one and two are
supporting. The problem is, I have application A mounted to the root
level of the domain, so it can be pulled up via. http://www.domain.com
But, if I use mod_jk to try and mount application B or C to
http://www.domain.com/appB or http://www.domain.com/appC, a 404 is
thrown when trying to browse to appB or appC.
The part that I think I did wrong was the way I mounted appA to the root
level of the domain. I did this by adding the following in the Tomcat
server.xml:
<Host name="www.domain.com">
<Context path="" docBase="/opt/tomcat5/webapps/webappA" debug="0"/>
</Host>
In the domain's vhost file, I have the following JkMount entries:
JkMount /appB ajp13
JkMount /appB/* ajp13
JkMount /appC ajp13
JkMount /appC/* ajp13
JkMount / ajp13
JkMount /* ajp13
I can understand why it's doing what it's doing, especially with Tomcat
handling the virtual hosting as well. The problem is, I having a real
hard time finding anything to point me in the right direction to resolve
this (or even find out if it's possible).
A long time ago I could swear I found a way to mount a webapp to the
root domain with mod_jk without modifying Tomcat's server.xml, but of
course, I can't find it again.
I'm running Tomcat 5.5.17 with Apache 2.0.55.
I appreciate any help in advance.
Regards,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk Submounts
Posted by tang jie <cr...@gmail.com>.
On 5/2/06, Mike Bydalek <mb...@compunetconsulting.com> wrote:
> <Host name="www.domain.com">
> <Context path="" docBase="/opt/tomcat5/webapps/webappA"
> debug="0"/>
I think you should add the following:
<Context path="/appB" docBase="..." debug="0"/>
<Context path="/appC" docBase="..." debug="0"/>
</Host>
Because i think you should tell Tomcat the other 2 webapp's location.