I need help configuring NGINX to act as a reverse proxy for my two nextcloud instances. Each nextcloud is running NGINX as the webserver, and i think i just need to configure one of these to act as the reverse proxy for both? I would like to have my tld domains to be able to work without attaching a unique port to one of them.
Any help would be greatly appreciated.
This is the guide i used to set up my two nextcloud instances.
What exactly is your goal? Do you want to have e.g. cloud1.example.com and cloud2.example.com be separate Nextcloud instances, but have both domains pointed at the same IP so one reverse proxies and the other serves Nextcloud on the same machine?
Actually I misspoke, I have residential service and my ip address changes from time to time, but I have ddclient set up on my servers to update the DNS records for my domains.