Bitnami Tomcat behind AWS Load Balancer SSL Config

Keywords: Tomcat - AWS - Technical issue - Secure Connections (SSL/HTTPS)
Description:
Hello, we’ve been using an image that was originally based off of Bitnami Tomcat back in 2016. We’ve kept it updated manually but have been running on it’s installed Tomcat 7 since. We need to get current so I’m working on building a new image based on the latest Bitnami Tomcat AWS image. The image we used based on the 2016 Bitnami uses Apache for SSL and sends traffic through to Tomcat via ProxyPass. Our instances created from these images are always behind an AWS Classic Load Balancer configured with our SSL details. Given this situation what is the advised way to configure Apache to route this traffic to Tomcat? If you have any additional documentation please send.

This link: https://docs.bitnami.com/general/infrastructure/tomcat/administration/enable-ssl-tomcat/ is not a desirable option for us as we utilize a bunch of features from Apache to control our SSL settings.

When I follow this link: https://docs.bitnami.com/general/infrastructure/tomcat/administration/enable-https-ssl-apache/ it works fine outside a load balancer but I can’t reach it once it’s inside the load balancer. The load balancer is using the same configuration it uses today with our instances spawned from that previous gen AMI. So I’ve ruled out issues like Security Group and permission issues.

Hi @nmb1106,

Thanks for using Bitnami. We are doing some changes to the configuration of our applications, but Tomcat keeps connecting with Apache using a ProxyPass. You can get more information on these changes in the next link

https://docs.bitnami.com/aws/faq/get-started/understand-upcoming-changes/

Regarding the Apache configuration for tomcat, you have it available in the next files.

  • /opt/bitnami/apache2/conf/vhosts/tomcat-vhost.conf
  • /opt/bitnami/apache2/conf/vhosts/tomcat-https-vhost.conf

I understand those are the files you need to modify to allow the load balancer connections. Hope it helps!