OS: Linux Redhat
Load Balancer: Apache 2 (assuming it is in /usr/local/apache2)
App Server: JBoss 4x
What to do in Apache?
You need to install mod jk module in it, if not already present.
Look inside /usr/local/apache2/modules dir, if there is any file with name similar to mod_jk*.so
If not, download from:
And rename it to mod_jk.so and add to:
Add workers.properties file to: /usr/local/apache2/conf
Contents of workers.properties file are:
What to do in JBoss?
We will need at least two JBoss installations. If both are on same machine, then their ports must be different, if they are on different machines, then ports can remain same ofcourse.
Usually there is nothing to do in JBoss, since all the necessary ports are pre-configured. But you can check nevertheless.
The main thing here is to know – what the JBoss JK Port is. This is configured in bindings xml file. By default the bindings file is this one:
Typically, if JBoss http port is 8180, JK Port is 8109 (i.e HTTPPort-71, that’s what the calculation usually is!!)
This JKPort is what we provide in workers.properties file mentioned before. Thats it.