You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pascal <pa...@carat-hosting.com> on 2006/05/06 03:03:06 UTC

Tomcat config with APACHE and mutliple VHOST

Hello,

I not really found revelant info on internet about this.

Here is what we plan to do.

We have currently APACHE and mutli^ple vhost on few shared IP. We'd like to allow to some or all vhost to use jsp/servlet. So we will install TOMCAT and mod_JK

Here is our config snapshot
apache in /etc/httpd/
vhost conf file in /etc/httpd/conf.d/
public_html (or docuemntroot in every vhost) are in /home/user_account/domain_name/html

So our question is :
What would be the best configrution to allow all users or some users to have jsp file in their html directory ?
What is the best way, 1 apache instance and multiple Tomcat instances or manage everything with vhost ?

If you could give us a web pointer or some snip config exemple of server.xml, web.xml, vhost-conf files, worker.properties we will really apreciate it
Also were should we add the context ? and where have to be all files (like WEB-INF, etc...) ? 

Thanks a ton for your help, HowTo

Pascal

Re: Tomcat config with APACHE and mutliple VHOST

Posted by Pascal <pa...@carat-hosting.com>.
Oups....

Ok in fact I should create few connector (one per IP/port non SSL/SSL)  and 
then only one worker.properties ?

Is that correct ?

Like an other thread show
 <Connector port="443"  name="72.3.245.1"
           maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
           emptySessionPath="true" useIPVHosts="tru"
           scheme="https" secure="true" clientAuth="false"
           keystoreFile="D:/jdk1.5.0_02/bin/key1"
           keystorePass="pass1" sslProtocol = "TLS" />

    <Connector port="443"  name="72.32.93.2"
           maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
           emptySessionPath="true" useIPVHosts="true"
           scheme="https" secure="true" clientAuth="false"
           keystoreFile="D:/jdk1.5.0_02/bin/key2"
           keystorePass="pass2" sslProtocol = "TLS" />

...

Pascal
> Thank you Fabio
>
> You don't have to create a connector per IP ? or vhost ?
> I only have to create a connector for localhost ? and for both no ssl port 
> and ssl port ?
>
> We have few IP and Few domains per IP
>
> I'm sorry I'm a newbie in Tomcat.
>
> To resume I have to
> Define virtualhost in server.xml
> Define a connector in server.xml
> And define only ONE worker.properties ?
>
> In the exemple here http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html he, 
> in fact, declare a worker.list with different protocol ajp12, ajp13 and a 
> connecter_id and then define for every vhost a worker.connect_id.host
>
> In this case it means few instances of Tomcat. So in worker.properties how 
> I delcare few vhosts/IP knowing there is few IPs
>
> A localhost worker definition is enough and allow to have only one 
> isntance of Tomcat for every vhost on every IPs ?
>
> is that correct ?
>
> Thanks for your help
>
> Pascal
>>>  What is a trouble for us is this
>>>> Other file that needs editing is workers.properties First thing. Add 
>>>> the connection name to the worker.list
>>>>         worker.list=ajp12, ajp13, connect_id
>>>> Next add that connection to the worker
>>>>         worker.connect_id.port=8112
>>>>         worker.connect_id.host=virtual.domainname.com
>>>>         worker.connect_id.type=ajp13
>>>
>>> Ok we add a connexion name, but it means to create a workers.properties 
>>> for every vhosts ? Basicly it means we have to restart apache/tomcat 
>>> every time we add a new vhost ? also where the workers.properties should 
>>> be ? in the vhost documentroot ? in the tomcat dir ? in the WEB-INF dir 
>>> of every vhosts ? I think it is this last case no ?
>> It's enought to define only one worker because that is the link between 
>> apache and tomcat (in fact in server.xml you declare only one ajp 
>> connector).
>>
>> Many connectors (usually) mean many tomcat instances.
>>
>> Fabio
>>
>> ---------------------------------------------------------------------
>> 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
>
> 



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


Re: Tomcat config with APACHE and mutliple VHOST

Posted by Pascal <pa...@carat-hosting.com>.
Fabio

Thanks a ton :)

So I'll try this config.
- 1 connector
- all vhost defined in server.xml
- 1 worker.properties (arff this last one I can't figure out how it can 
work, isn't it also use for auto-deploy war ? Ireally not need a 
worker.properties per vhost... anyway I'll try)

and we'll see...

One time again thank you for gived us some times

Pascal


----- Original Message ----- 
From: "Fabio Gurgone" <fa...@nextre.it>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Monday, May 08, 2006 5:34 PM
Subject: Re: Tomcat config with APACHE and mutliple VHOST


> Pascal,
>
> "normally", in your kind of configuration, tomcat connector listen on all 
> your IPs.
> When the *.jsp request arrives (main points):
> - Apache checks if it's managing this vhost (VirtualHost)
> - JkMount says (this is tomcat stuff)
> - mod_jk speaks with Tomcat (connector)
> - Catalina checks if it's managing this vhost (Host)
> - Catalina serves the page to Apache
> - Apache return the page to the client
>
> One communication link between Apache and Tomcat should be enough (I'm 
> using this conf on some servers).
>
> bye,
> Fabio
>
> Pascal wrote:
>> Thank you Fabio
>>
>> You don't have to create a connector per IP ? or vhost ?
>> I only have to create a connector for localhost ? and for both no ssl 
>> port and ssl port ?
>>
>> We have few IP and Few domains per IP
>>
>> I'm sorry I'm a newbie in Tomcat.
>>
>> To resume I have to
>> Define virtualhost in server.xml
>> Define a connector in server.xml
>> And define only ONE worker.properties ?
>>
>> In the exemple here http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html he, 
>> in fact, declare a worker.list with different protocol ajp12, ajp13 and a 
>> connecter_id and then define for every vhost a worker.connect_id.host
>>
>> In this case it means few instances of Tomcat. So in worker.properties 
>> how I delcare few vhosts/IP knowing there is few IPs
>>
>> A localhost worker definition is enough and allow to have only one 
>> isntance of Tomcat for every vhost on every IPs ?
>>
>> is that correct ?
>>
>> Thanks for your help
>>
>> Pascal
>>>>  What is a trouble for us is this
>>>>> Other file that needs editing is workers.properties First thing. Add 
>>>>> the connection name to the worker.list
>>>>>         worker.list=ajp12, ajp13, connect_id
>>>>> Next add that connection to the worker
>>>>>         worker.connect_id.port=8112
>>>>>         worker.connect_id.host=virtual.domainname.com
>>>>>         worker.connect_id.type=ajp13
>>>>
>>>> Ok we add a connexion name, but it means to create a workers.properties 
>>>> for every vhosts ? Basicly it means we have to restart apache/tomcat 
>>>> every time we add a new vhost ? also where the workers.properties 
>>>> should be ? in the vhost documentroot ? in the tomcat dir ? in the 
>>>> WEB-INF dir of every vhosts ? I think it is this last case no ?
>>> It's enought to define only one worker because that is the link between 
>>> apache and tomcat (in fact in server.xml you declare only one ajp 
>>> connector).
>>>
>>> Many connectors (usually) mean many tomcat instances.
>>>
>>> Fabio
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>
> ---------------------------------------------------------------------
> 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: Tomcat config with APACHE and mutliple VHOST

Posted by Fabio Gurgone <fa...@nextre.it>.
Pascal,

"normally", in your kind of configuration, tomcat connector listen on 
all your IPs.
When the *.jsp request arrives (main points):
- Apache checks if it's managing this vhost (VirtualHost)
- JkMount says (this is tomcat stuff)
- mod_jk speaks with Tomcat (connector)
- Catalina checks if it's managing this vhost (Host)
- Catalina serves the page to Apache
- Apache return the page to the client

One communication link between Apache and Tomcat should be enough (I'm 
using this conf on some servers).

bye,
Fabio

Pascal wrote:
> Thank you Fabio
>
> You don't have to create a connector per IP ? or vhost ?
> I only have to create a connector for localhost ? and for both no ssl 
> port and ssl port ?
>
> We have few IP and Few domains per IP
>
> I'm sorry I'm a newbie in Tomcat.
>
> To resume I have to
> Define virtualhost in server.xml
> Define a connector in server.xml
> And define only ONE worker.properties ?
>
> In the exemple here http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html 
> he, in fact, declare a worker.list with different protocol ajp12, 
> ajp13 and a connecter_id and then define for every vhost a 
> worker.connect_id.host
>
> In this case it means few instances of Tomcat. So in worker.properties 
> how I delcare few vhosts/IP knowing there is few IPs
>
> A localhost worker definition is enough and allow to have only one 
> isntance of Tomcat for every vhost on every IPs ?
>
> is that correct ?
>
> Thanks for your help
>
> Pascal
>>>  What is a trouble for us is this
>>>> Other file that needs editing is workers.properties First thing. 
>>>> Add the connection name to the worker.list
>>>>         worker.list=ajp12, ajp13, connect_id
>>>> Next add that connection to the worker
>>>>         worker.connect_id.port=8112
>>>>         worker.connect_id.host=virtual.domainname.com
>>>>         worker.connect_id.type=ajp13
>>>
>>> Ok we add a connexion name, but it means to create a 
>>> workers.properties for every vhosts ? Basicly it means we have to 
>>> restart apache/tomcat every time we add a new vhost ? also where the 
>>> workers.properties should be ? in the vhost documentroot ? in the 
>>> tomcat dir ? in the WEB-INF dir of every vhosts ? I think it is this 
>>> last case no ?
>> It's enought to define only one worker because that is the link 
>> between apache and tomcat (in fact in server.xml you declare only one 
>> ajp connector).
>>
>> Many connectors (usually) mean many tomcat instances.
>>
>> Fabio
>>
>> ---------------------------------------------------------------------
>> 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
>
>

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


Re: Tomcat config with APACHE and mutliple VHOST

Posted by Pascal <pa...@carat-hosting.com>.
Thank you Fabio

You don't have to create a connector per IP ? or vhost ?
I only have to create a connector for localhost ? and for both no ssl port 
and ssl port ?

We have few IP and Few domains per IP

I'm sorry I'm a newbie in Tomcat.

To resume I have to
Define virtualhost in server.xml
Define a connector in server.xml
And define only ONE worker.properties ?

In the exemple here http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html he, in 
fact, declare a worker.list with different protocol ajp12, ajp13 and a 
connecter_id and then define for every vhost a worker.connect_id.host

In this case it means few instances of Tomcat. So in worker.properties how I 
delcare few vhosts/IP knowing there is few IPs

A localhost worker definition is enough and allow to have only one isntance 
of Tomcat for every vhost on every IPs ?

is that correct ?

Thanks for your help

Pascal
>>  What is a trouble for us is this
>>> Other file that needs editing is workers.properties First thing. Add the 
>>> connection name to the worker.list
>>>         worker.list=ajp12, ajp13, connect_id
>>> Next add that connection to the worker
>>>         worker.connect_id.port=8112
>>>         worker.connect_id.host=virtual.domainname.com
>>>         worker.connect_id.type=ajp13
>>
>> Ok we add a connexion name, but it means to create a workers.properties 
>> for every vhosts ? Basicly it means we have to restart apache/tomcat 
>> every time we add a new vhost ? also where the workers.properties should 
>> be ? in the vhost documentroot ? in the tomcat dir ? in the WEB-INF dir 
>> of every vhosts ? I think it is this last case no ?
> It's enought to define only one worker because that is the link between 
> apache and tomcat (in fact in server.xml you declare only one ajp 
> connector).
>
> Many connectors (usually) mean many tomcat instances.
>
> Fabio
>
> ---------------------------------------------------------------------
> 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: Tomcat config with APACHE and mutliple VHOST

Posted by Fabio Gurgone <fa...@nextre.it>.
[cut]
>  What is a trouble for us is this
>> Other file that needs editing is workers.properties First thing. Add 
>> the connection name to the worker.list
>>         worker.list=ajp12, ajp13, connect_id
>> Next add that connection to the worker
>>         worker.connect_id.port=8112
>>         worker.connect_id.host=virtual.domainname.com
>>         worker.connect_id.type=ajp13
>
> Ok we add a connexion name, but it means to create a 
> workers.properties for every vhosts ? Basicly it means we have to 
> restart apache/tomcat every time we add a new vhost ? also where the 
> workers.properties should be ? in the vhost documentroot ? in the 
> tomcat dir ? in the WEB-INF dir of every vhosts ? I think it is this 
> last case no ?
It's enought to define only one worker because that is the link between 
apache and tomcat (in fact in server.xml you declare only one ajp 
connector).

Many connectors (usually) mean many tomcat instances.

Fabio

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


Re: Tomcat config with APACHE and mutliple VHOST

Posted by Pascal <pa...@carat-hosting.com>.
Hello all,

Thanks Fabio and Pedro.

Pedro : I ahd already readen this 
http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html , but there is smethink I 
do not understand.
Ok you update your vhost to add an handler for jsp page, with jkmount, it's 
fine
Ok you define all your vhost in server.xml : arfff so you have two 
definitions for every vhosts, one in the vhost.conf file itself and one in 
server.xml. Not very manageable but why not, and we could try to automatise 
this, so it could be fine

What is a trouble for us is this
> Other file that needs editing is workers.properties First thing. Add the 
> connection name to the worker.list
>		worker.list=ajp12, ajp13, connect_id
>Next add that connection to the worker
>		worker.connect_id.port=8112
>		worker.connect_id.host=virtual.domainname.com
>		worker.connect_id.type=ajp13

Ok we add a connexion name, but it means to create a workers.properties for 
every vhosts ? Basicly it means we have to restart apache/tomcat every time 
we add a new vhost ? also where the workers.properties should be ? in the 
vhost documentroot ? in the tomcat dir ? in the WEB-INF dir of every vhosts 
? I think it is this last case no ?

Also with this solution does the auto-deploy will work ?


Thanks a ton

Pascal

> Hi Pascal, hi All,
>
> I'm very interested on this topic too.
>
> I'm using Apache with vhosts + mod_jk + 1 tomcat with vhosts.
> You have to configure the same vhosts in apache and tomcat (look <Host> 
> tomcat conf docs).
>
> I this should be possible to configure multiple tomcat instances (not in 
> LB) too (one for each vhost).
>
> But, at the moment, I'm not satisfy about these solutions because:
> - the first it' very hard to manage because anytime you add a vhost you 
> have to restart tomcat (an this procude a disservice)....and often I have 
> 1 vhost => 1 web app
>
> - with the second solution you will have decouple domains but too many 
> instances (and resources)
>
> I admit I'm not completely up to date with the last tomcat releses.
>
> Have someone other ideas ?
>
> thanks,
> Fabio
>
>
>
> Pedro Silveira Vieira da Silva wrote:
>> I think what you need is to use modjk:
>> http://tomcat.apache.org/connectors-doc/
>>
>>
>> Here are some examples how to use it:
>> http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html
>>
>> Pedro Silva
>>
>>
>> Pascal wrote:
>>
>>> Hello
>>>
>>> Nobody could help me please or give a web pointer to help us to well
>>> configure Tomcat with Apache with a lot of vhosts
>>>
>>> Thanks by advance
>>>
>>> Pascal
>>>
>>>
>>>
>>>
>>>
>>>> Yes Apache serves the Static pages and PHP
>>>>
>>>> We have 150 Vhost in fact.
>>>>
>>>> Some of our best client would like to use jsp/servlet in addition to
>>>> their existing php/htm file
>>>>
>>>> Pascal
>>>> ----- Original Message ----- From: "Parsons Technical Services"
>>>> <pa...@earthlink.net>
>>>> To: "Tomcat Users List" <us...@tomcat.apache.org>
>>>> Sent: Saturday, May 06, 2006 3:09 AM
>>>> Subject: Re: Tomcat config with APACHE and mutliple VHOST
>>>>
>>>>
>>>>
>>>>> Any reason you need Apache? You can do the Vhost with Tomcat alone.
>>>>> Just an option.
>>>>>
>>>>> Doug
>>>>>
>>>>>
>>>>> ----- Original Message ----- From: "Pascal" <pa...@carat-hosting.com>
>>>>> To: <us...@tomcat.apache.org>
>>>>> Sent: Friday, May 05, 2006 9:03 PM
>>>>> Subject: Tomcat config with APACHE and mutliple VHOST
>>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> I not really found revelant info on internet about this.
>>>>>
>>>>> Here is what we plan to do.
>>>>>
>>>>> We have currently APACHE and mutli^ple vhost on few shared IP. We'd
>>>>> like to allow to some or all vhost to use jsp/servlet. So we will
>>>>> install TOMCAT and mod_JK
>>>>>
>>>>> Here is our config snapshot
>>>>> apache in /etc/httpd/
>>>>> vhost conf file in /etc/httpd/conf.d/
>>>>> public_html (or docuemntroot in every vhost) are in
>>>>> /home/user_account/domain_name/html
>>>>>
>>>>> So our question is :
>>>>> What would be the best configrution to allow all users or some users
>>>>> to have jsp file in their html directory ?
>>>>> What is the best way, 1 apache instance and multiple Tomcat instances
>>>>> or manage everything with vhost ?
>>>>>
>>>>> If you could give us a web pointer or some snip config exemple of
>>>>> server.xml, web.xml, vhost-conf files, worker.properties we will
>>>>> really apreciate it
>>>>> Also were should we add the context ? and where have to be all files
>>>>> (like WEB-INF, etc...) ?
>>>>>
>>>>> Thanks a ton for your help, HowTo
>>>>>
>>>>> Pascal
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
> ---------------------------------------------------------------------
> 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: Tomcat config with APACHE and mutliple VHOST

Posted by Fabio Gurgone <fa...@nextre.it>.
Hi Pascal, hi All,

I'm very interested on this topic too.

I'm using Apache with vhosts + mod_jk + 1 tomcat with vhosts.
You have to configure the same vhosts in apache and tomcat (look <Host> 
tomcat conf docs).

I this should be possible to configure multiple tomcat instances (not in 
LB) too (one for each vhost).

But, at the moment, I'm not satisfy about these solutions because:
- the first it' very hard to manage because anytime you add a vhost you 
have to restart tomcat (an this procude a disservice)....and often I 
have 1 vhost => 1 web app

- with the second solution you will have decouple domains but too many 
instances (and resources)

I admit I'm not completely up to date with the last tomcat releses.

Have someone other ideas ?

thanks,
Fabio



Pedro Silveira Vieira da Silva wrote:
> I think what you need is to use modjk:
> http://tomcat.apache.org/connectors-doc/
>
>
> Here are some examples how to use it:
> http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html
>
> Pedro Silva
>
>
> Pascal wrote:
>   
>> Hello
>>
>> Nobody could help me please or give a web pointer to help us to well
>> configure Tomcat with Apache with a lot of vhosts
>>
>> Thanks by advance
>>
>> Pascal
>>
>>
>>
>>
>>     
>>> Yes Apache serves the Static pages and PHP
>>>
>>> We have 150 Vhost in fact.
>>>
>>> Some of our best client would like to use jsp/servlet in addition to
>>> their existing php/htm file
>>>
>>> Pascal
>>> ----- Original Message ----- From: "Parsons Technical Services"
>>> <pa...@earthlink.net>
>>> To: "Tomcat Users List" <us...@tomcat.apache.org>
>>> Sent: Saturday, May 06, 2006 3:09 AM
>>> Subject: Re: Tomcat config with APACHE and mutliple VHOST
>>>
>>>
>>>       
>>>> Any reason you need Apache? You can do the Vhost with Tomcat alone.
>>>> Just an option.
>>>>
>>>> Doug
>>>>
>>>>
>>>> ----- Original Message ----- From: "Pascal" <pa...@carat-hosting.com>
>>>> To: <us...@tomcat.apache.org>
>>>> Sent: Friday, May 05, 2006 9:03 PM
>>>> Subject: Tomcat config with APACHE and mutliple VHOST
>>>>
>>>>
>>>> Hello,
>>>>
>>>> I not really found revelant info on internet about this.
>>>>
>>>> Here is what we plan to do.
>>>>
>>>> We have currently APACHE and mutli^ple vhost on few shared IP. We'd
>>>> like to allow to some or all vhost to use jsp/servlet. So we will
>>>> install TOMCAT and mod_JK
>>>>
>>>> Here is our config snapshot
>>>> apache in /etc/httpd/
>>>> vhost conf file in /etc/httpd/conf.d/
>>>> public_html (or docuemntroot in every vhost) are in
>>>> /home/user_account/domain_name/html
>>>>
>>>> So our question is :
>>>> What would be the best configrution to allow all users or some users
>>>> to have jsp file in their html directory ?
>>>> What is the best way, 1 apache instance and multiple Tomcat instances
>>>> or manage everything with vhost ?
>>>>
>>>> If you could give us a web pointer or some snip config exemple of
>>>> server.xml, web.xml, vhost-conf files, worker.properties we will
>>>> really apreciate it
>>>> Also were should we add the context ? and where have to be all files
>>>> (like WEB-INF, etc...) ?
>>>>
>>>> Thanks a ton for your help, HowTo
>>>>
>>>> Pascal
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>>
>>>       
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>   

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


Re: Tomcat config with APACHE and mutliple VHOST

Posted by Pedro Silveira Vieira da Silva <ps...@labcc.dcc.fc.up.pt>.
I think what you need is to use modjk:
http://tomcat.apache.org/connectors-doc/


Here are some examples how to use it:
http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html

Pedro Silva


Pascal wrote:
> Hello
> 
> Nobody could help me please or give a web pointer to help us to well
> configure Tomcat with Apache with a lot of vhosts
> 
> Thanks by advance
> 
> Pascal
> 
> 
> 
> 
>> Yes Apache serves the Static pages and PHP
>>
>> We have 150 Vhost in fact.
>>
>> Some of our best client would like to use jsp/servlet in addition to
>> their existing php/htm file
>>
>> Pascal
>> ----- Original Message ----- From: "Parsons Technical Services"
>> <pa...@earthlink.net>
>> To: "Tomcat Users List" <us...@tomcat.apache.org>
>> Sent: Saturday, May 06, 2006 3:09 AM
>> Subject: Re: Tomcat config with APACHE and mutliple VHOST
>>
>>
>>> Any reason you need Apache? You can do the Vhost with Tomcat alone.
>>> Just an option.
>>>
>>> Doug
>>>
>>>
>>> ----- Original Message ----- From: "Pascal" <pa...@carat-hosting.com>
>>> To: <us...@tomcat.apache.org>
>>> Sent: Friday, May 05, 2006 9:03 PM
>>> Subject: Tomcat config with APACHE and mutliple VHOST
>>>
>>>
>>> Hello,
>>>
>>> I not really found revelant info on internet about this.
>>>
>>> Here is what we plan to do.
>>>
>>> We have currently APACHE and mutli^ple vhost on few shared IP. We'd
>>> like to allow to some or all vhost to use jsp/servlet. So we will
>>> install TOMCAT and mod_JK
>>>
>>> Here is our config snapshot
>>> apache in /etc/httpd/
>>> vhost conf file in /etc/httpd/conf.d/
>>> public_html (or docuemntroot in every vhost) are in
>>> /home/user_account/domain_name/html
>>>
>>> So our question is :
>>> What would be the best configrution to allow all users or some users
>>> to have jsp file in their html directory ?
>>> What is the best way, 1 apache instance and multiple Tomcat instances
>>> or manage everything with vhost ?
>>>
>>> If you could give us a web pointer or some snip config exemple of
>>> server.xml, web.xml, vhost-conf files, worker.properties we will
>>> really apreciate it
>>> Also were should we add the context ? and where have to be all files
>>> (like WEB-INF, etc...) ?
>>>
>>> Thanks a ton for your help, HowTo
>>>
>>> Pascal
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> 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: Tomcat config with APACHE and mutliple VHOST

Posted by Pascal <pa...@carat-hosting.com>.
Hello

Nobody could help me please or give a web pointer to help us to well 
configure Tomcat with Apache with a lot of vhosts

Thanks by advance

Pascal




> Yes Apache serves the Static pages and PHP
>
> We have 150 Vhost in fact.
>
> Some of our best client would like to use jsp/servlet in addition to their 
> existing php/htm file
>
> Pascal
> ----- Original Message ----- 
> From: "Parsons Technical Services" <pa...@earthlink.net>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Saturday, May 06, 2006 3:09 AM
> Subject: Re: Tomcat config with APACHE and mutliple VHOST
>
>
>> Any reason you need Apache? You can do the Vhost with Tomcat alone. Just 
>> an option.
>>
>> Doug
>>
>>
>> ----- Original Message ----- 
>> From: "Pascal" <pa...@carat-hosting.com>
>> To: <us...@tomcat.apache.org>
>> Sent: Friday, May 05, 2006 9:03 PM
>> Subject: Tomcat config with APACHE and mutliple VHOST
>>
>>
>> Hello,
>>
>> I not really found revelant info on internet about this.
>>
>> Here is what we plan to do.
>>
>> We have currently APACHE and mutli^ple vhost on few shared IP. We'd like 
>> to allow to some or all vhost to use jsp/servlet. So we will install 
>> TOMCAT and mod_JK
>>
>> Here is our config snapshot
>> apache in /etc/httpd/
>> vhost conf file in /etc/httpd/conf.d/
>> public_html (or docuemntroot in every vhost) are in 
>> /home/user_account/domain_name/html
>>
>> So our question is :
>> What would be the best configrution to allow all users or some users to 
>> have jsp file in their html directory ?
>> What is the best way, 1 apache instance and multiple Tomcat instances or 
>> manage everything with vhost ?
>>
>> If you could give us a web pointer or some snip config exemple of 
>> server.xml, web.xml, vhost-conf files, worker.properties we will really 
>> apreciate it
>> Also were should we add the context ? and where have to be all files 
>> (like WEB-INF, etc...) ?
>>
>> Thanks a ton for your help, HowTo
>>
>> Pascal
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
> 



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


Re: Tomcat config with APACHE and mutliple VHOST

Posted by Pascal <pa...@carat-hosting.com>.
Yes Apache serves the Static pages and PHP

We have 150 Vhost in fact.

Some of our best client would like to use jsp/servlet in addition to their 
existing php/htm file

Pascal
----- Original Message ----- 
From: "Parsons Technical Services" <pa...@earthlink.net>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Saturday, May 06, 2006 3:09 AM
Subject: Re: Tomcat config with APACHE and mutliple VHOST


> Any reason you need Apache? You can do the Vhost with Tomcat alone. Just 
> an option.
>
> Doug
>
>
> ----- Original Message ----- 
> From: "Pascal" <pa...@carat-hosting.com>
> To: <us...@tomcat.apache.org>
> Sent: Friday, May 05, 2006 9:03 PM
> Subject: Tomcat config with APACHE and mutliple VHOST
>
>
> Hello,
>
> I not really found revelant info on internet about this.
>
> Here is what we plan to do.
>
> We have currently APACHE and mutli^ple vhost on few shared IP. We'd like 
> to allow to some or all vhost to use jsp/servlet. So we will install 
> TOMCAT and mod_JK
>
> Here is our config snapshot
> apache in /etc/httpd/
> vhost conf file in /etc/httpd/conf.d/
> public_html (or docuemntroot in every vhost) are in 
> /home/user_account/domain_name/html
>
> So our question is :
> What would be the best configrution to allow all users or some users to 
> have jsp file in their html directory ?
> What is the best way, 1 apache instance and multiple Tomcat instances or 
> manage everything with vhost ?
>
> If you could give us a web pointer or some snip config exemple of 
> server.xml, web.xml, vhost-conf files, worker.properties we will really 
> apreciate it
> Also were should we add the context ? and where have to be all files (like 
> WEB-INF, etc...) ?
>
> Thanks a ton for your help, HowTo
>
> Pascal
>
>
> ---------------------------------------------------------------------
> 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: Tomcat config with APACHE and mutliple VHOST

Posted by Parsons Technical Services <pa...@earthlink.net>.
Any reason you need Apache? You can do the Vhost with Tomcat alone. Just an 
option.

Doug


----- Original Message ----- 
From: "Pascal" <pa...@carat-hosting.com>
To: <us...@tomcat.apache.org>
Sent: Friday, May 05, 2006 9:03 PM
Subject: Tomcat config with APACHE and mutliple VHOST


Hello,

I not really found revelant info on internet about this.

Here is what we plan to do.

We have currently APACHE and mutli^ple vhost on few shared IP. We'd like to 
allow to some or all vhost to use jsp/servlet. So we will install TOMCAT and 
mod_JK

Here is our config snapshot
apache in /etc/httpd/
vhost conf file in /etc/httpd/conf.d/
public_html (or docuemntroot in every vhost) are in 
/home/user_account/domain_name/html

So our question is :
What would be the best configrution to allow all users or some users to have 
jsp file in their html directory ?
What is the best way, 1 apache instance and multiple Tomcat instances or 
manage everything with vhost ?

If you could give us a web pointer or some snip config exemple of 
server.xml, web.xml, vhost-conf files, worker.properties we will really 
apreciate it
Also were should we add the context ? and where have to be all files (like 
WEB-INF, etc...) ?

Thanks a ton for your help, HowTo

Pascal 



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