How to set Worker Properties in Apache2
We have to create new file (workers.properties) inside /etc/apache2/
$sudo nano workers.properties
#past below lines
# configure jk-status
worker.list=jk-status
worker.jk-status.type=status
worker.jk-status.read_only=true
# configure jk-manager
worker.list=jk-manager
worker.jk-manager.type=status
worker.balance1.type=lb
# Define 1 real worker using ajp13
worker.list=worker1
#Set properties for worker (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
8009=Current tomcat AJP Port
Conclusion ----
By using workers.properties we can manage our particular tomcat with specific website.
Example for other Tomcat we have to just put some changes in the same file
$sudo nano workers.properties
#past below lines
# configure jk-status
worker.list=jk-status
worker.jk-status.type=status
worker.jk-status.read_only=true
# configure jk-manager
worker.list=jk-manager
worker.jk-manager.type=status
worker.balance1.type=lb
# Define 1 real worker using ajp13
worker.list=worker1,worker2
#Set properties for worker (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
#Below is changes for other tomcat
worker.worker2.type=ajp13
worker.worker2.host=localhost
worker.worker2.port=8008
8008=Second running Tomcat AJP Port
#Arvind
$sudo nano workers.properties
#past below lines
# configure jk-status
worker.list=jk-status
worker.jk-status.type=status
worker.jk-status.read_only=true
# configure jk-manager
worker.list=jk-manager
worker.jk-manager.type=status
worker.balance1.type=lb
# Define 1 real worker using ajp13
worker.list=worker1
#Set properties for worker (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
8009=Current tomcat AJP Port
Conclusion ----
By using workers.properties we can manage our particular tomcat with specific website.
Example for other Tomcat we have to just put some changes in the same file
$sudo nano workers.properties
#past below lines
# configure jk-status
worker.list=jk-status
worker.jk-status.type=status
worker.jk-status.read_only=true
# configure jk-manager
worker.list=jk-manager
worker.jk-manager.type=status
worker.balance1.type=lb
# Define 1 real worker using ajp13
worker.list=worker1,worker2
#Set properties for worker (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
#Below is changes for other tomcat
worker.worker2.type=ajp13
worker.worker2.host=localhost
worker.worker2.port=8008
8008=Second running Tomcat AJP Port
#Arvind