Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is the minimal configuration,

Code Block
languagexmlbash
# Define workers using ajp13
worker.list=tomcat_a_worker

# Set properties for worker
worker.tomcat_a_worker.type=ajp13
worker.tomcat_a_worker.host=localhost
worker.tomcat_a_worker.port=8009
worker.tomcat_a_worker.lbfactor=1

...

To keep the example simple I have not added load balance support yet. If you want load do load balancing a simple configuration would look like this,

Code Block
languagexmlbash
# Define workers using ajp13
worker.list=loadbalancer

# Set properties for worker
worker.tomcat_a_worker.type=ajp13
worker.tomcat_a_worker.host=localhost
worker.tomcat_a_worker.port=8009
worker.tomcat_a_worker.lbfactor=1

# Set properties for worker
worker.tomcat_b_worker.type=ajp13
worker.tomcat_b_worker.host=localhost
worker.tomcat_b_worker.port=8109
worker.tomcat_b_worker.lbfactor=1

# Set up load balancer using ajp13 workers
work.loadbalancer.type=lb
work.loadbalancer.balance_workers=tomcat_a_worker,tomcat_b_worker

...

Look for this block and comment out.

Code Block
languagebash
# Tin: This directory does not exist.
#
# workers.tomcat_home=/usr/share/tomcat5

...