Article 4RG9J How to set up NGINX, as a reverse proxy on a virtual machine which has 2 network interfaces?

How to set up NGINX, as a reverse proxy on a virtual machine which has 2 network interfaces?

by
chummia
from LinuxQuestions.org on (#4RG9J)
Hello every body,

I am a beginner in using Linux. I want to build up a LAN network with the set up of NGINX as a reverse proxy on a Virtual machine 'Routeur' which will act as a box, with 2 interfaces, 1 on the LAN side and the other, on the WAN side.

Routeur - enp0s3 dhcp
- enp0s8 static 192.168.2.254/24

srv-web1 - 192.168.2.1/24 (ccs-linux.ddns.net)
srv-web2 - 192.168.2.2/24 (Apache default website)

The 'Routeur' is a Debian, after configuring the networks part, i have installed NGINX on it.

My problem is that i want NGINX to run as a reverse proxy and not a a server web, and i don't know what are the steps to do so.

NGINX is installed correctly on my machine and the web page of NGINX is shown correctly.

If someone can explain to me the steps to do so that my 'Routeur' can do a reverse proxy for my 2 servers web.

Thanking you in advance for your help.latest?d=yIl2AUoC8zA latest?i=I0-sikg3cBM:UBwX88CGMYU:F7zBnMy latest?i=I0-sikg3cBM:UBwX88CGMYU:V_sGLiP latest?d=qj6IDK7rITs latest?i=I0-sikg3cBM:UBwX88CGMYU:gIN9vFwI0-sikg3cBM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments