Setup Apache as reverse proxy with mod_proxy Ubuntu

In order to use Tomcat with Apache it is necessary to enable the mod_proxy module for Apache to forward all requests on ports 80 and 443 to port 8080. Tomcat then handles the redirection from port 8080 to 8443.

Simply enable the following two modules:

sudo a2enmod proxy
sudo a2enmod proxy_http

Restart Apache:

sudo systemctl restart apache2