Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache integration

Status
Not open for further replies.

jcamp

Programmer
Mar 31, 2004
31
US
i'm using tomcat 5.0.

could someone please, give me a step by step explanation as to how to integrate it with apache ??
 
Its fairly simple.

1) Make sure you have a connetor for port 8009

Code:
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8009" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="20000"
               useURIValidationHack="false"
               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

that will handle the apache hand off's.


2) Download mod_jk from the apache site.
or

depending on if your using apache 1 or 2.

3) Add this line to your httpd.conf

Code:
LoadModule jk2_module modules/mod_jk2.so


4) create a file named 'workers2.properties' in your conf directory. Here is where you tell apache what to send to tomcat. Mine looks like

Code:
[channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 [uri:/*do]
 worker=ajp13:localhost:8009
 [uri:/*jsp]
 worker=ajp13:localhost:8009
 [uri:/admin/j_security_check]
 worker=ajp13:localhost:8009
 [uri:/clientV1]
 worker=ajp13:localhost:8009

your needs may vary.

4) start everything up and your set.

The mod_jk binary download comes with more full featured instructions, this is just a 1,000 foot view of it.
 
Siberian,
Thanks for the information. This could prove useful.
Will try this with mod_jk2, apache, slide, and webdav shortly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top