In this post we will take a look at how to setup Nginx as a reverse proxy for Docker in CentOS 8. You can also find my Youtube video on the same at the end of this post.
So Let’s Start:
First question , why do we need reverse proxy ? The answer is simple, if we need to run many applications or webserver servicing different pages on the same server machine, we would need a reverse proxy.
Reverse proxy will run on port 80 (Default port of a non secure web server) and forward the request to webserver / application running on different ports (Other than port 80 since the default port is already being used by Nginx reverse proxy).
Installing Nginx:
Install Docker:
Install Apache pod:
Setting up and Configuring Nginx for Reverse Proxy.