Page tree

Versions Compared

Key

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

...

First verify that you can hit the examples application without mod_jk by directly hitting the tomcat a TomcatA server running on port 8080.

...

In our examples we will be using virtual hosts. Once you get virtual hosts working, add this a reference to the worker entry to your virtual host file.

Code Block
languagexml
JkMount /examples tomcat_a_worker
JkMount /examples/* tomcat_a_worker
Note

The name of the worker depends on what you used in your workers.properties file. In this article we had two other examples,
ajp13_worker (if you went with the default generated workers.properties file) or load_balancer (if you opted to follow the load balancer example).

If you are not using virtual hosts you can add the above to /etc/apache2/sites-enabled/000-default.

If you wanted to use the load balancer you would change tomcatA TomcatA to loadbalancer.

Restart Apache

...