Using NGINX as reverse proxy

preview_player
Показать описание
Hi everyone,

In this video I'll show a simple approach on how you can use NGINX server as reverse proxy. This allow you to receive client requests on this server and forward them to an isolated server on your local network. I'll use Apache2 as our web content server on port 8080.

Some notes and configuration regarding firewall configuration as also done in order to secure our servers.

On the WAN side, I use Rocky Linux as a client to make the requests.

The web content shown is a simple PHP webpage created to retrieve some environment variables that will demonstrate that Apache2 is in fact responding to NGINX requests as a reverse proxy server.

I hope you enjoy. Please comment below. Thanks!

Regards,
Rodrigo Matias
Рекомендации по теме
Комментарии
Автор

nice work! can you make a video (?) about a proxy about web and mail servers i think haproxy can do that, nging can work as reverse proxy for mail servers ?

straka
Автор

it seems using netfilter for port forwarding in between 2 interfaces, rather than Nginx Reverse Proxy setup.
for Nginx Reverse Proxy, the main setting/control should be upstream feature. ufw/firewalld/iptables is advanced control for backup server farms, like LVS

laweschan