Do you want to move your entire AMP instance to a new Server, or do you just want to change your Domain, but stay on the same server? quite hard to follow.
Normaly AMP creates an nginx-config during setup, with your desired domain. You should be able to locate that nginx-config at /etc/nginx/sites-available/ or /etc/nginx/sites-enabled
If you find the config there, open it and change the server name to your new domain e.g.
After that, restart nginx sudo service nginx restart
Of course, you will also need to create a new A-Record, in the DNS-Console of your new domain, to point towards your servers ip. I assume you have already done that for your old domain.
Thank you so much for this!
Following your response and a bit of toying, I managed to get it working.
For anyone else in the same boat as me, this is how I solved it.
1. Locate the nginx configuration
AMP’s nginx config was in /etc/nginx/conf.d/panel.<old-domain>.conf