How to change IP address of VestaCP Server
Recently I upgraded a VestaCP server running on an Amazon Lightsail server. Upgrade resulted in a change of the internal IP address of the server, this made site hosted on the server stop working. To fix the problem, I run the command
/usr/local/vesta/bin/v-update-sys-ip NEW_IP_HERE
NEW_IP_HERE – replace with actual IP. If your server is behind NAT like Amazon lighsail/ec2, use the internal IP address instead of the public IP address.
Example
/usr/local/vesta/bin/v-update-sys-ip 172.26.8.137
Now you need to restart the web server
systemctl restart apache2 systemctl restart nginx systemctl restart vesta
Back to VestaCP