tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dolores García-Izquierdo Jaén <>
Subject RE: Calling a JSP from a virtual host
Date Thu, 15 Jan 2004 09:08:44 GMT

Thank you guys for your answers.
Oscar, I followed the instructions in your HOWTO but it didn't work.
I'm not sure if I made myself clear yesterday explaining my problem. What I
want to do is to have, for each virtual host in Apache, its respective web
application in Tomcat so as I can isolate the JSP code for every Apache
domain inside its own Tomcat application.
Right now I can only access the JSP pages from one of the virtual hosts, the
first one, the default one. If I want to access from any other virtual host
(let's say from I must use instead of

Any help would be appreciated. Thanks again,

-----Original Message-----
From: Oscar Carrillo []
Sent: Wednesday, 14 January, 2004 22:50
To: Tomcat Users List
Subject: Re: Calling a JSP from a virtual host


I believe you need to do the jkmounts in each <VirtualHost> config in

And, I think, you must not use the auto-generated mod_jk.conf.

It should work as explained in my HOWTO:

Eventhough, I reference Linux, Tomcat and Apache configuration should be
the same, I presume.


On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote:

>  Hi everyone.
> I have the next configuration in my server:
> - Windows 2000 - sorry, no chance to use Linux :-(
> - Apache 2, with some virtual hosts
> - Tomcat 1.4, with some JSP webapps
> - mod_jk, to communicate Apache and Tomcat.
> I have the whole static code in Apache, and the JSP code in Tomcat.
> Everything works fine, but I think there is something that it's not going
> it should. I'll explain it:
> Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary
> the "default" one), myvirtualhost2 and myvirtualhost3, and a copy of
> index.html and index.jsp pages is inside each of those applications.
> --> shows ok
> --> shows ok
> --> shows ok
> And I have 1 webapp defined in Tomcat, myWebapp:
> --> shows ok
> The problem comes here, as I can only call a JSP page through the
> website in Apache:
> or
> don't work (can't find
> page). The only thing that works is
> Is it possible to make this work? How can I call any JSP page in Tomcat
> any of my virtual hosts in Apache?
> I've looked for information all over the Internet and the archives of this
> mailing list, but I couldn't find any solution (found one but it's only
> valid for mod_jk2 - it didn't work for mod_jk)
> Thanks in advance
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message