Yesterday we showed students and new users how to install Apache Tomcat 9 web server on Ubuntu 16.04 / 17.10 and 18.04… Tomcat by default communicates over port 8080… which is not a standard port… You must always use the server name and port 8080 to be able to access Tomcat’s content… In some cases, this might not be what users want…
This post will show you how to setup Apache2 HTTP server as a reverse proxy for Tomcat 9 webserver. A reverse proxy is a type of service where the proxy server (frontend server) takes HTTP(S) requests and forwards them to a backend server.
In this setup, Apache2 will sit in front of Tomcat 9 and accepts all requests over port 80 (the default). Then those requests are transparently sent to Tomcat 9 webserver to fetch and retrieve the content….
To get started with setting up Apache2 as a reverse proxy, follow the steps below
Step 1: Install Tomcat 9 Server
To use Apache Tomcat 9 as a backend server, you must install and configure it… We’ve covered that on this website… To learn how to install Tomcat webserer, read the post below: