You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ioannis Parapontis <pa...@gmail.com> on 2011/09/03 23:51:20 UTC

Virtual hosts on Tomcat 7 for 3 webapps

Hi there 

I have a server that runs 3 different web apps on the same ip but each on its own port. eg ip:8080, ip:8081 and ip:8082. All apps should run simultaneously and have their own folders.  Can a single Tomcat support the 3 of them and can  i use virtual hosts on Tomcat alone ?

Thanks 

Sent from my iPhone
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Virtual hosts on Tomcat 7 for 3 webapps

Posted by Mark Eggers <it...@yahoo.com>.
----- Original Message -----

> From: Ioannis Parapontis <pa...@gmail.com>
> To: Tomcat Users List <us...@tomcat.apache.org>
> Cc: 
> Sent: Saturday, September 3, 2011 3:25 PM
> Subject: Re: Virtual hosts on Tomcat 7 for 3 webapps
> 
>T hanks for the responses. The  reason i do not use apache is that the server 
> that runs my 3 apps works better with Tomcat. So it would be useful if some 
> guidelines are provided on how i should do this.
> 
> Sent from my iPhone


See the following Wiki entry for setting up virtual hosts. While it's geared towards a development environment, if you add the hosts to DNS it should work find in a production environment.

http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts


. . . . just my two cents.
/mde/


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


Re: Virtual hosts on Tomcat 7 for 3 webapps

Posted by Hassan Schroeder <ha...@gmail.com>.
On Sat, Sep 3, 2011 at 3:25 PM, Ioannis Parapontis
<pa...@gmail.com> wrote:

>  So it would be useful if some guidelines are provided on how i should do this.

They are; see the documentation's "virtual hosting how-to"  :-)

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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


Re: Virtual hosts on Tomcat 7 for 3 webapps

Posted by Ioannis Parapontis <pa...@gmail.com>.
Thanks for the responses. The  reason i do not use apache is that the server that runs my 3 apps works better with Tomcat. So it would be useful if some guidelines are provided on how i should do this.

Sent from my iPhone

On 4 Σεπ 2011, at 1:01, Manuel Fernández Panzuela<ma...@gmail.com> wrote:

> why you don't use virtualhost over apache ?
> 
> it's easier do it with it.
> 
> Un saludo
> 
> 
> 
> 2011/9/3 Ioannis Parapontis <pa...@gmail.com>
> 
>> Hi there
>> 
>> I have a server that runs 3 different web apps on the same ip but each on
>> its own port. eg ip:8080, ip:8081 and ip:8082. All apps should run
>> simultaneously and have their own folders.  Can a single Tomcat support the
>> 3 of them and can  i use virtual hosts on Tomcat alone ?
>> 
>> Thanks
>> 
>> Sent from my iPhone
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
>> 

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


Re: Virtual hosts on Tomcat 7 for 3 webapps

Posted by Manuel Fernández Panzuela <ma...@gmail.com>.
why you don't use virtualhost over apache ?

it's easier do it with it.

Un saludo



2011/9/3 Ioannis Parapontis <pa...@gmail.com>

> Hi there
>
> I have a server that runs 3 different web apps on the same ip but each on
> its own port. eg ip:8080, ip:8081 and ip:8082. All apps should run
> simultaneously and have their own folders.  Can a single Tomcat support the
> 3 of them and can  i use virtual hosts on Tomcat alone ?
>
> Thanks
>
> Sent from my iPhone
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Virtual hosts on Tomcat 7 for 3 webapps

Posted by Hassan Schroeder <ha...@gmail.com>.
On Sat, Sep 3, 2011 at 2:51 PM, Ioannis Parapontis
<pa...@gmail.com> wrote:

> I have a server that runs 3 different web apps on the same ip but each on its own port. eg ip:8080, ip:8081 and ip:8082. All apps should run simultaneously and have their own folders.  Can a single Tomcat support the 3 of them and can  i use virtual hosts on Tomcat alone ?

Yes. You don't need Apache httpd in front of Tomcat, and you don't
even need to run on separate ports if you use named virtual servers.

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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