You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by david joffrin <da...@hotmail.com> on 2005/04/05 13:17:12 UTC

Apache, tomcat and virtual host

Hi,

I would like to run the following configurations with only one
machine: 3 domains. Let's name them, www.domain1.com and
sthg.domain2.com and www.domain2.com.

www.domain1.com runs on 80 using apache and php
www.domain2.com runs on 8080 using tomcat, mysql...
sthg.domain2.com runs on 443 using apache and php

Using the virtual hosts, I managed to set-up successfully
www.domain1.com and sthg.domain2.com. I am now trying to include
mod_jk, but when doing that, I am loosing the virtual hosts features
and all my requests (for all sites) are sent to the tomcat instance
(including the https one).

Is that possible should probably my first question?
Has anyone some experience with a similar set-up?

Thanks for your help.
David.



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


Re: Apache, tomcat and virtual host

Posted by David Rees <dr...@gmail.com>.
On Apr 5, 2005 11:23 PM, david joffrin <da...@hotmail.com> wrote:
> Yes,
> 
> I'd like to set up the following set up the following URLs:
> >http://www.domain1.com/
> >http://www.domain2.com/
> >https://sthg.domain1.com/
> but this http://www.domain1.com/ must redirects to a tomcat instance and I
> would like to implement load balancing on this one (so using mod_jk).
> 
> How should I configure my httpd.conf to realize that as so far if I
> implement mod_jk on my https instance, all domains are redirected to the
> tomcat instance.

Why don't you post links to or paste in your httpd.conf and
tomcat-workers.properties so that we have half a chance of figuring
out your problem?

-Dave

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


Re: Apache, tomcat and virtual host

Posted by david joffrin <da...@hotmail.com>.
Yes,

I'd like to set up the following set up the following URLs:
>http://www.domain1.com/
>http://www.domain2.com/
>https://sthg.domain1.com/
but this http://www.domain1.com/ must redirects to a tomcat instance and I 
would like to implement load balancing on this one (so using mod_jk).

How should I configure my httpd.conf to realize that as so far if I 
implement mod_jk on my https instance, all domains are redirected to the 
tomcat instance.

Thanks.
DvJ

>From: David Rees <dr...@gmail.com>
>Reply-To: David Rees <dr...@gmail.com>
>To: Tomcat Users List <to...@jakarta.apache.org>
>Subject: Re: Apache, tomcat and virtual host
>Date: Tue, 5 Apr 2005 17:54:22 -0700
>
>On Apr 5, 2005 4:17 AM, david joffrin <da...@hotmail.com> wrote:
> >
> > I would like to run the following configurations with only one
> > machine: 3 domains. Let's name them, www.domain1.com and
> > sthg.domain2.com and www.domain2.com.
> >
> > www.domain1.com runs on 80 using apache and php
> > www.domain2.com runs on 8080 using tomcat, mysql...
> > sthg.domain2.com runs on 443 using apache and php
> >
> > Using the virtual hosts, I managed to set-up successfully
> > www.domain1.com and sthg.domain2.com. I am now trying to include
> > mod_jk, but when doing that, I am loosing the virtual hosts features
> > and all my requests (for all sites) are sent to the tomcat instance
> > (including the https one).
> >
> > Is that possible should probably my first question?
> > Has anyone some experience with a similar set-up?
>
>Yes, it is possible to configure multiple virtual hosts with Apache
>and Tomcat...
>
>Your explanation of your current setup is confusing.  Are you trying
>to setup the following URLs?
>
>http://www.domain1.com/
>http://www.domain2.com/
>https://sthg.domain1.com/
>
>-Dave
>
>---------------------------------------------------------------------
>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: Apache, tomcat and virtual host

Posted by David Rees <dr...@gmail.com>.
On Apr 5, 2005 4:17 AM, david joffrin <da...@hotmail.com> wrote:
> 
> I would like to run the following configurations with only one
> machine: 3 domains. Let's name them, www.domain1.com and
> sthg.domain2.com and www.domain2.com.
> 
> www.domain1.com runs on 80 using apache and php
> www.domain2.com runs on 8080 using tomcat, mysql...
> sthg.domain2.com runs on 443 using apache and php
> 
> Using the virtual hosts, I managed to set-up successfully
> www.domain1.com and sthg.domain2.com. I am now trying to include
> mod_jk, but when doing that, I am loosing the virtual hosts features
> and all my requests (for all sites) are sent to the tomcat instance
> (including the https one).
> 
> Is that possible should probably my first question?
> Has anyone some experience with a similar set-up?

Yes, it is possible to configure multiple virtual hosts with Apache
and Tomcat...

Your explanation of your current setup is confusing.  Are you trying
to setup the following URLs?

http://www.domain1.com/
http://www.domain2.com/
https://sthg.domain1.com/

-Dave

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


Apache, tomcat and virtual host

Posted by david joffrin <da...@hotmail.com>.
Hi,

I would like to run the following configurations with only one
machine: 3 domains. Let's name them, www.domain1.com and
sthg.domain2.com and www.domain2.com.

www.domain1.com runs on 80 using apache and php
www.domain2.com runs on 8080 using tomcat, mysql...
sthg.domain2.com runs on 443 using apache and php

Using the virtual hosts, I managed to set-up successfully
www.domain1.com and sthg.domain2.com. I am now trying to include
mod_jk, but when doing that, I am loosing the virtual hosts features
and all my requests (for all sites) are sent to the tomcat instance
(including the https one).

Is that possible should probably my first question? ProxyHost on one machine 
that pushes 8080 to another that implement mod_jk?
Has anyone some experience with a similar set-up?

Thanks for your help.
David.



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