Configuring an Apache Web server for Tomcat load balancing
Apache Web server configuration for Tomcat load balancing involves enabling the AJP13 protocol for communicating with the load balancer and adding a number of definitions that reference the load balancer.
Note: Tomcat load balancing can be done with Web servers other than Apache. However, only Apache configuration is described here because Apache is arguably the most common Web server, and it is not practicable to describe the configuration details of all the available Web servers.
Basically, you do the following:
1. Open Apache's /conf/httpd.conf file and un-comment theLoadModule directives in the Apache Web server's httpd.conf file that enable AJP13. The LoadModule directives include:
Note: Depending on which version of the Apache server you are using, there may be additional modules required. See the Apache Web site (http://httpd.apache.org/) for documentation on your version of the Apache server.
2. Add the following definitions to /conf/httpd.conf: