Tomcat connector is a protocol communicating between Apache Httpd server and Tomcat server. Usually we call it Tomcat JK connector(JK name comes from Tomcat JK project). Currently we use AJP1.3 protocol(AJP1.2 is deprecated).
For detail, please refer to http://tomcat.apache.org/connectors-doc/
Download source code
It’s not recommended to use pre-compiled JK connector binary in Linux environment. We build it from the source code. Please download it from http://www.apache.org/dist/tomcat/tomcat-connectors/jk/
- Unzip the compressed file
Find the directory of apxs program.
This step requires the apxs program from Apache Httpd. We have to find the apxs folder.
Make the mod_jk.so
In command-line console, type
./configure --with-apxs=/usr/local/apache-2.2.24/bin/apxs make
The compiled mod_jk.so will be created in native/apache-2.0 folder