Moving Vesta from one server to another
Posted: Tue Apr 30, 2019 7:58 pm
Hi,
I have image with VestaCP and a web site on IP address 1.2.3.4 for example. If make and image of that server and create a new instance of that server on IP address 5.6.7.8, VestaCP works fine on port 8083. However Apache and NGinx fail to start.
In the config files of both apache and nginx it says %ip%proxy_port in the usr/local/vesta/data/templates/web and that %ip on the new instance is IP of the old instance.
1) Where do I change that %IP variable?
2) How can I check the IP address of the server and use that instead? hostname -I for example gives correct IP of the server.
Many thanks
I have image with VestaCP and a web site on IP address 1.2.3.4 for example. If make and image of that server and create a new instance of that server on IP address 5.6.7.8, VestaCP works fine on port 8083. However Apache and NGinx fail to start.
In the config files of both apache and nginx it says %ip%proxy_port in the usr/local/vesta/data/templates/web and that %ip on the new instance is IP of the old instance.
1) Where do I change that %IP variable?
2) How can I check the IP address of the server and use that instead? hostname -I for example gives correct IP of the server.
Many thanks