tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Carrillo <tom...@daydream.stanford.edu>
Subject Re: Calling a JSP from a virtual host
Date Wed, 14 Jan 2004 21:49:57 GMT
Hi,

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

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

It should work as explained in my HOWTO:
http://daydream.stanford.edu/tomcat/install_web_services.html

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

Oscar

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 as
> it should. I'll explain it:
> 
> Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary one,
> the "default" one), myvirtualhost2 and myvirtualhost3, and a copy of
> index.html and index.jsp pages is inside each of those applications.
> http://www.myvirtualhost1.com/index.html --> shows ok
> http://www.myvirtualhost2.com/index.html --> shows ok
> http://www.myvirtualhost3.com/index.html --> shows ok
> 
> And I have 1 webapp defined in Tomcat, myWebapp:
> http://www.myvirtualhost1.com/myWebapp/index.jsp --> shows ok
> 
> The problem comes here, as I can only call a JSP page through the "default"
> website in Apache:
> http://www.myvirtualhost2.com/myWebapp/index.jsp or
> http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find the
> page). The only thing that works is
> http://www.myvirtualhost1.com/myWebapp/index.jsp
> 
> Is it possible to make this work? How can I call any JSP page in Tomcat from
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message