In case you have to change an existing IP in DirectAdmin, you can do this with (old IP 188.8.131.52/New IP 184.108.40.206):
./ipswap.sh 220.127.116.11 18.104.22.168
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.