Integrate Apache with Apache Tomcat

Bitnami stacks include the Apache Web server. There are different ways to connect these two servers. One of them is connecting through the AJP protocol.

The AJP Connector element represents a Connector component that communicates with a web connector via the AJP protocol. This is used to invisibly integrate Tomcat into an Apache installation and have Apache handle the static content of the web application and/or to utilize Apache’s SSL processing.

To make them work together, enable the and modules in installdir/apache2/conf/httpd.conf. Then, add the following lines to the file:

<Location /APPURL>
  ProxyPass ajp://localhost:8009/APPURL

If you connect your application through AJP, you will probably want to disable the Tomcat HTTP port. The Bitnami Tomcat Stack has the HTTP server disabled by default. To modify this configuration, uncomment the HTTP section in the installdir/apache-tomcat/conf/server.xml file.

Last modification December 24, 2019