httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Om" <hari...@hotmail.com>
Subject [users@httpd] Apache+Tomcat + MOD_JK on different machine
Date Tue, 23 Mar 2004 14:58:06 GMT
SUBJECT: Apache+Tomcat + MOD_JK on different machine

I am using Apache 2.0.47 and Tomcat 4.1.27 on my SuSE Linux. I had 
configured my mod_jk and it works just great! (My Web and App Server were on 
same box)

Now I have a Web Server and App Server on a different box and was wondering 
what changes do I have to make to "MOD_JK" for the Integration to work.

My old settings were:
----------
httpd.conf
----------
LoadModule jk_module modules/mod_jk.so
ServerName abc.com

Include /usr/local/tomcat4/conf/auto/mod_jk.conf

JkWorkersFile "/usr/local/apa2047/conf/workers.properties"
JkLogFile "/usr/local/apa2047/logs/mod_jk.log"

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13

--------------------
workers.properties
--------------------

workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5


Now that I have both APACHE and TOMCAT on DIFFERENT Boxes, I was wondering 
what changes do I have to make for the above to work.

My Web Server is "xyz.com" and my App Server is "abc.com". I have mod_jk 
configured in my Web Server.

My new HTTPD.CONF file is:
My NEW settings are:
------------------------------
httpd.conf (on Web Server)
------------------------------
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com

Include conf/mod_jk.conf

JkWorkersFile "conf/workers.properties"
JkLogFile "logs/mod_jk.log"

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13

------------------------------------
workers.properties (on Web Server)
------------------------------------

workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message