You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by codedummy <co...@hotmail.com> on 2003/04/10 16:14:36 UTC

using two tomcats with one apache?

Hello,

Is it possible to use virtual hosts with different tomcat instances?

www.d1.com => virtual server 1 in apache tomcat jvm (ajp on port 8009)
www.d2.com => virtual server 2 in apache tomcat jvm (ajp on port 8010)

Thanks
Peter


Re: using two tomcats with one apache?

Posted by codedummy <co...@hotmail.com>.
with mod_jk2?

Greetings and thanks
Peter

----- Original Message ----- 
From: "Lajos" <la...@galatea.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, April 10, 2003 4:16 PM
Subject: Re: using two tomcats with one apache?


> Peter -
> 
> Sure. If you use mod_jk, you can define two workers in 
> workers.properties, and reference them in httpd.conf in the appropriate 
> <VirtualHost> blocks.
> 
> Regards,
> 
> Lajos
> 
> 
> codedummy wrote:
> > Hello,
> > 
> > Is it possible to use virtual hosts with different tomcat instances?
> > 
> > www.d1.com => virtual server 1 in apache tomcat jvm (ajp on port 8009)
> > www.d2.com => virtual server 2 in apache tomcat jvm (ajp on port 8010)
> > 
> > Thanks
> > Peter
> > 
> > 
> 
> 
> -- 
> 
> 
> 
>                     Lajos Moczar
>        ----------------------------------------
>      Open Source Support, Consulting and Training
>        ----------------------------------------
>              Cocoon Developer's Handbook
>   (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
> 
>                     _      _____
>                    / \         /
>                   /___\      /
>                  /     \   /____
> 
>       http://www.galatea.com -- powered by AzSSL
> 
> 
> ---------------------------------------------------------------------
> 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


Re: using two tomcats with one apache?

Posted by John Turner <to...@johnturner.com>.
I know this is possible, but I had no luck whatsoever doing this, after 
spending about 12-13 hours on it a week ago.

I ended up just using one instance of Tomcat instead of two.

John

On Thu, 10 Apr 2003 08:16:08 -0600, Lajos <la...@galatea.com> wrote:

> Peter -
>
> Sure. If you use mod_jk, you can define two workers in 
> workers.properties, and reference them in httpd.conf in the appropriate 
> <VirtualHost> blocks.
>
> Regards,
>
> Lajos
>
>
> codedummy wrote:
>> Hello,
>>
>> Is it possible to use virtual hosts with different tomcat instances?
>>
>> www.d1.com => virtual server 1 in apache tomcat jvm (ajp on port 8009)
>> www.d2.com => virtual server 2 in apache tomcat jvm (ajp on port 8010)
>>
>> Thanks
>> Peter
>>
>>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


Re: using two tomcats with one apache?

Posted by Lajos <la...@galatea.com>.
Peter -

Sure. If you use mod_jk, you can define two workers in 
workers.properties, and reference them in httpd.conf in the appropriate 
<VirtualHost> blocks.

Regards,

Lajos


codedummy wrote:
> Hello,
> 
> Is it possible to use virtual hosts with different tomcat instances?
> 
> www.d1.com => virtual server 1 in apache tomcat jvm (ajp on port 8009)
> www.d2.com => virtual server 2 in apache tomcat jvm (ajp on port 8010)
> 
> Thanks
> Peter
> 
> 


-- 



                    Lajos Moczar
       ----------------------------------------
     Open Source Support, Consulting and Training
       ----------------------------------------
             Cocoon Developer's Handbook
  (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

                    _      _____
                   / \         /
                  /___\      /
                 /     \   /____

      http://www.galatea.com -- powered by AzSSL


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