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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]