From the course: NGINX for Beginners

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Reverse proxy demo

Reverse proxy demo - Nginx Tutorial

From the course: NGINX for Beginners

Reverse proxy demo

Welcome back guys now in this demo I'm gonna be showing you how to configure a reverse proxy. Now it's gonna be kind of similar to what we did with the load balancer but instead of sending traffic to two Apache back-end servers we're gonna be sending traffic to two flask applications running on two servers on port 5000. Now I should mention that the difference between load balancer and a reverse proxy is that with the load balancer we were sending traffic to two servers, whereas the reverse proxy can run inside the same NGINX server. So if you are trying to save money, you could in theory run the Flask application in the same server and have NGINX proxy that traffic internally. Now let's go over to the terminal so we can start configuring this. Now I'm here on NGINX, this is the reverse proxy in theory. We have node 1 and we have node 2. You can quickly do SSH node 01 to SSH into the other one or node 2. Let me clear this out and I'm going to be in the NGINX to configure a reverse…

Contents