RE: Two Tomcats and One Apache Web Server

2003-12-10 Thread Greg . Cope
 Hi Greg,
 
 Are u using Apache with SSL?

Sometimes.  We use mod_jk2 and a Coyote/JK2 AJP 1.3 connector.


 If yes, should all client requests show up in ssl access or 
 request log. 

On the apache side this depends on your logging config, but usually ssl
access.

On the tomcat side I think they appear in the normal logs, as from tomcats
POV an SSL/non-SSL connection both come in via the Coyote/JK2 connector.

 Should a windows application also put logs info in the same 
 log files or do I need to configure something else.

Can you rephrase the question?  I would keep different applications logs
seperate, and merge later/offline if needed.

Greg

 
 Thanks
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 09, 2003 11:11 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Two Tomcats and One Apache Web Server
 
 
 We do this extensively  lots of tomcats (20 instances?) 
 talking to lots
 of apache's (20 instances?).
 
 We use apache 1.3.x, 4.1.29 and mod_jk2
 
 The config is a little complex, but we have scripted this so 
 it is quite
 easy.
 
 No real pitfalls, just need to understand mod_jk2 well.
 
 Greg
 
 -
 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]



RE: Two Tomcats and One Apache Web Server

2003-12-09 Thread Galbayar
try google
Apache tomcat load balancing

-Original Message-
From: Walter do Valle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 8:14 PM
To: [EMAIL PROTECTED]
Subject: Two Tomcats and One Apache Web Server


Hello all

Is it possible to install two Tomcats in the same linux server, put some web
applications in one tomcat, put some web applications in other tomcat and
both tomcats answer to the same Apache Web Server?
Anyone has made this?
Is there any tips and tricks about this matter?
What is the best way to do this (if possible)?

Thansks for any help


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Two Tomcats and One Apache Web Server

2003-12-09 Thread Martin Kuba
Walter do Valle wrote:
Hello all

Is it possible to install two Tomcats in the same linux server, put some web applications in one tomcat, put some web applications in other tomcat and both tomcats answer to the same Apache Web Server?
Anyone has made this?
Is there any tips and tricks about this matter? 
What is the best way to do this (if possible)?
Sure. Set the TomCats to listen for AJP13 requests on
two different ports, say 8009 and 8010 by changing the
port number in their conf/server.xml.
In the first tomcat, leave this section as it is:
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=0
   useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
and in the second tomcat, change 8009 to 8010.

Then install mod_jk into Apache and define two workers in 
workers.properties:

worker.list=t1,t2
worker.t1.type=ajp13
worker.t1.port=8009
worker.t1.host=localhost
worker.t2.type=ajp13
worker.t2.port=8010
worker.t2.host=localhost
then map them in httpd.conf:

LoadModule  jk_module   libexec/mod_jk.so
JkWorkersFile /etc/httpd/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkMount /webapp1/* t1
JkMount /webapp2/* t2
It will route requests for /webapp1 to the first tomcat
and requests for /webapp2 to the second tomcat.
Martin
--
~~
Supercomputing Center Brno Martin Kuba
Institute of Computer Scienceemail: [EMAIL PROTECTED]
Masaryk University http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775
--


smime.p7s
Description: S/MIME Cryptographic Signature


RE: Two Tomcats and One Apache Web Server

2003-12-09 Thread Asif Chowdhary
Hi,

I have done that with Apache on Linux and multiple instances of tomcat on same NT 
machine.

It works. I think as  long as tomcat is started in its own JVM separately from the 
first one you should not have any problem.

-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 6:38 AM
To: Tomcat Users List; Walter do Valle
Subject: RE: Two Tomcats and One Apache Web Server


try google
Apache tomcat load balancing

-Original Message-
From: Walter do Valle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 8:14 PM
To: [EMAIL PROTECTED]
Subject: Two Tomcats and One Apache Web Server


Hello all

Is it possible to install two Tomcats in the same linux server, put some web
applications in one tomcat, put some web applications in other tomcat and
both tomcats answer to the same Apache Web Server?
Anyone has made this?
Is there any tips and tricks about this matter?
What is the best way to do this (if possible)?

Thansks for any help


-
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]



RE: Two Tomcats and One Apache Web Server

2003-12-09 Thread Michael Cardon
You can try my How-To file at http://www.cardon.biz/docs/tomcat/

Michael

-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 3:38 AM
To: Tomcat Users List; Walter do Valle
Subject: RE: Two Tomcats and One Apache Web Server


try google
Apache tomcat load balancing

-Original Message-
From: Walter do Valle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 8:14 PM
To: [EMAIL PROTECTED]
Subject: Two Tomcats and One Apache Web Server


Hello all

Is it possible to install two Tomcats in the same linux server, put some web
applications in one tomcat, put some web applications in other tomcat and
both tomcats answer to the same Apache Web Server?
Anyone has made this?
Is there any tips and tricks about this matter?
What is the best way to do this (if possible)?

Thansks for any help


-
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]



RE: Two Tomcats and One Apache Web Server

2003-12-09 Thread Greg . Cope
We do this extensively  lots of tomcats (20 instances?) talking to lots
of apache's (20 instances?).

We use apache 1.3.x, 4.1.29 and mod_jk2

The config is a little complex, but we have scripted this so it is quite
easy.

No real pitfalls, just need to understand mod_jk2 well.

Greg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Two Tomcats and One Apache Web Server

2003-12-09 Thread Asif Chowdhary
Hi Greg,

Are u using Apache with SSL?
If yes, should all client requests show up in ssl access or request log. 
Should a windows application also put logs info in the same log files or do I need to 
configure something else.

Thanks


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Two Tomcats and One Apache Web Server


We do this extensively  lots of tomcats (20 instances?) talking to lots
of apache's (20 instances?).

We use apache 1.3.x, 4.1.29 and mod_jk2

The config is a little complex, but we have scripted this so it is quite
easy.

No real pitfalls, just need to understand mod_jk2 well.

Greg

-
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]