server Ubuntu 16 + vestaCP +5 IPv4 —> (move to) new server Ubuntu 20 + hestiaCP + new 5 IPv4.
i have over 3000 sites.
On the new server:
added old IP addresses in hestiaCP
added new IP addresses in hestiaCP
for each user made v-restore-user
I checked, each site was linked to the desired old IP.
How can I change the old IP addresses to new ones on a new server? for all users and in all apache, nginx configs and where else… It is difficult to do this manually for a large number of sites.
Did the hestiaCP developers take care of this?
I’m not sure about this, but if you hadn’t added the old IP address to Hestia on the new server, I think it would have defaulted to the new IP address. Would it be possible to do the migration again, without adding the old IP address to the new server?
If not, and you’re stuck with the current situation, probably your best bet would be to write a script to change all the IP addresses for each site using the command-line tools.
Pluto is completly right here, if the old address doesnt exist on the system, it will automatically rewrite it to the new one while restore it. If you add the one aswell, it will not change it due to the fact, that the address is still there.