I have a subdomain that I need to redirect to a completely different domain. This subdomain was set up as a CNAME that pointed to Shopify, now it's being removed completely.
Lets say the subdomain is shop.example.com
I've now set an A record for that to point to the primary IP address.
From what I've read on here, I can add the following to my NGNIX file..
listen 80;
server_name https://shop.example.com;
return 301 https://example2.com;
And put this inside the server block.
This server is provisioned on Forge and already has
listen 443 ssl http2;
listen [::]:443 ssl http2;
At the top of the server block. Do I still need the listen 80;?
And does this look correct?
Many thanks.