In case you have to change an existing IP in DirectAdmin, you can do this with (old IP 220.127.116.11/New IP 18.104.22.168):
./ipswap.sh 22.214.171.124 126.96.36.199
If you run NGINX (as reverse proxy) you need to edit etc/nginx/nginx-vhosts.conf. manually. Replace there (twice, listen :80 and :443) the old IP with the new IP and when you are done, run:
This article was written by: Alentejo Hosting.