How to Run Apache and Tomcat separately!!!!

2003-01-21 Thread Vivek Singh
Hi,
   I have apache and tomcat running on the same localhost and
communicating over mod_jk. I want to run them on different machines.
What changes do I need to make  and where?

Thanks in Advance
Regards

Vivek  


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


RE: How to Run Apache and Tomcat separately!!!!

2003-01-21 Thread Turner, John

Change .host in workers.properties to the FQDN or IP address of the Tomcat
machine.

John


-Original Message-
From: Vivek Singh [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 21, 2003 3:57 AM
To: 'Tomcat Users List'
Subject: How to Run Apache and Tomcat separately


Hi,
   I have apache and tomcat running on the same localhost and communicating
over mod_jk. I want to run them on different machines. What changes do I
need to make  and where?

Thanks in Advance
Regards

Vivek  


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

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




Re: How to Run Apache and Tomcat separately!!!!

2003-01-21 Thread Jacob Kjome
Hi Vivek,

The following was posted to the list a while ago.  I don't have the 
archived URL for it, so I'm just re posting it here.  Hopefully it will 
help you out.  Note that it was not written by me so, if you have question, 
I'm afraid I won't be of much help.

Jake



Here it goes.

Machine  A (Apache), Machine B (tomcat)
-

httpd.conf changes...
-
Below # LoadModule foo_module modules/mod_foo.so

Add following lines
#
# Load mod_jk
#
 LoadModule jk_module libexec/mod_jk.so
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug

Below DocumentRoot /usr/local/apache/htdocs

Add following lines...

JkMount /examples ajp13
JkMount /examples/* ajp13

(if you want to configure a application examples running under webapps
on tomcat, just specify  /examples, you need not sepcify the full path
of the application)

Then create workers.properties under $Apache_Home$/conf/  like this

# In Unix, we use forward slashes:
ps=/

# list the workers by name
worker.list=ajp13

#
worker.ajp13.port=8009(ajp13 port from server.xml on tomcat machine)
worker.ajp13.host=hostname(Machine B)
worker.ajp13.type=ajp13

(no need to define tomcat_home and java_home parameters here, you define
them on catalina.sh on tomcat machine)

this is all you need to do on apache machine...

server.xml changes on  Machine B(tomcat machine)
--

Set the required environment variables JAVA_HOME AND CATALINA_HOME in
$TOMCAT_HOME$/bin/catalina.sh

Commen out the Standalone HTTP port(port 8080) Connector.

!--
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
--


Also Comment out the WARP connector

  Service name=Tomcat-Apache
!--
Connector
className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/
--


Change the both the Engine Tag and Host tag defaultHost to tomcat
hostName(ex: tomcat.apache.com)
(This should match with your workers.properties host name.)

Engine name=Standalone defaultHost=tomcat.apache.com debug=0
  Host name=tomcat.apache.com debug=0 appBase=webapps
unpackWARs=true
  /Host
/Engine

start tomcat and apache, you should be able to access examples from
apache machine

I have pretty much followed the http://www.ubeans.com/tomcat/
documentation..many many thanks to Pascal Forget.


Let me know, how it goes...

-Raj




At 02:26 PM 1/21/2003 +0530, you wrote:
Hi,
   I have apache and tomcat running on the same localhost and
communicating over mod_jk. I want to run them on different machines.
What changes do I need to make  and where?

Thanks in Advance
Regards

Vivek


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