Reverse Proxy redirects to other domain

I have CNAME sub . domain1 . com pointing to A record (dynamic . domain1 . com) properly configured so when i go to the url, i am directed to the instance of nextcloud I want to see at that link.

I have a second instance of nextcloud, i want to point to a different port that is running the same software, just very differently configured. I have the a record and the cnames setup the same way as the working site, however when i go to nextcloud . DOMAIN2 . com - it redirects to differentname . DOMAIN1 . com

I am not sure where to start.

You don’t just need a CNAME if you need to redirect different ports.
There are apps that can do the redirection or you can code this yourself using the workers.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.