Give nginx acces to all my local IP

Hi, I’d like to explain my problem. I’ve configured my Nginx Proxy Manager to redirect traffic to my jails from outside my home. However, I recently set up a virtual machine running on the local IP 192.168.1.61, while my Nginx server runs on 192.168.1.70. When I configure Nginx to point to the IP of my VM, I get a 502 Bad Gateway error.

I suspect that my Nginx container doesn’t have access to other IPs outside of its own. How can I resolve this?

For context, I’m running TrueNAS Scale ElectricEel-24.10.1. and Nginx came from the official apps repository

Warmly

What is running on that VM?
nginx only proxies HTTP/HTTPS, if it’s a different protocol it’s not going to work.

Hi, it’s run an apache server on the port http and https.
Warmly

Hi, I’m back to explain the real problem. It turns out the issue wasn’t with Nginx but with my network configuration and the virtual machine setup. I created a bridge and connected my virtual machine to it, and now it’s working. (Before that, after a few tests, I realized that the VM couldn’t ping TrueNAS, and TrueNAS couldn’t ping the VM.)

Warmly,