How to configure Apache HTTP Server as a reverse proxy for Sapho Server running on Apache Tomcat

Audience: System administrators installing and configuring Sapho Server

This is step-by-step guide for Ubuntu/Debian and CentOS based operating systems and these steps may vary slightly depending on your configuration and environment.

Step 1: Install Apache HTTP Server

On Ubuntu/Debian

sudo apt-get install -y apache2

CentOS based distributions

sudo yum install -y httpd24

Step 2: Configure Apache HTTP Server

  1. Download https://github.com/saphoinc/config-templates/blob/master/httpd.conf to
    /etc/httpd/conf/tomcat.conf
  2. If you are installing Apache HTTP Server on a server other than the one Sapho/Tomcat is on, then update these tomcat.conf directives as needed:
    ProxyPass / ajp://localhost:8009/
    ProxyPassReverse / ajp://localhost:8009/
  3. Restart Apache HTTP Server 
    sudo service httpd restart

Step 3: Enable SSL (Optional)

For SSL Certificate Installation in Apache see the how to by DigiCert.