Page 1 of 2
vestacp change server ip
Posted: Fri May 02, 2014 3:16 pm
by uday4ru
hi sir
my vps provider changed ips and later i cant login to panel with new ip. plz tell me where i can change my sever ip to new. plz tell asp as all sites are down.
thanks
Re: vestacp change server ip
Posted: Fri May 02, 2014 3:31 pm
by imperio
Hi,
you can use this command in the ssh
Re: vestacp change server ip
Posted: Sat May 03, 2014 1:26 pm
by uday4ru
sir
https://107.161.112.29:8083
i used to login with thi
now my main server ip became 162.245.216.135
how i can login using this ip like
https://162.245.216.135:8083
plz tell full command.person who installed panel is not there.
thanks
Re: vestacp change server ip
Posted: Sat May 03, 2014 1:39 pm
by imperio
Re: vestacp change server ip
Posted: Sun May 04, 2014 10:19 am
by uday4ru
yes i added ip and it is working. thanks for your fast help sites are also up.
http://tamilcinema.info/
thanks again
Re: vestacp change server ip
Posted: Sun May 04, 2014 10:54 am
by uday4ru
sir sorry there is big prob. it worked for few mins only , later when i restarted vps nothing works plz help.
all sites are down , httpd is not starting. here is error.107.161.112.29 is old ip. i have 2 vps nd both are down.
error mesg in ssh when tryed to start
[Sun May 04 05:50:16 2014] [warn] NameVirtualHost 107.161.112.79:8443 has no VirtualHosts
(99)Cannot assign requested address: make_sock: could not bind to address 107.161.112.29:8080
no listening sockets available, shutting down
Unable to open logs
Starting httpd: [FAILED]
Re: vestacp change server ip
Posted: Sun May 04, 2014 11:53 am
by uday4ru
sir presently only
https://162.245.216.135:8083
is working all other sites are down , httpd is started ,but nginx is not starting. i cant open any link or site.
/sbin/service nginx start
nginx: [emerg] bind() to 107.161.112.29:80 failed (99: Cannot assign requested address)
Starting nginx: [FAILED]
Re: vestacp change server ip
Posted: Sun May 04, 2014 2:44 pm
by imperio
in the /etc/httpd/conf.d (centos)
/etc/apache2/conf.d (debian/ubuntu)
you should add this config file
162.245.216.135.conf
Code: Select all
NameVirtualHost 162.245.216.135:8080
Listen 162.245.216.135:8080
NameVirtualHost 162.245.216.135:8443
Listen 162.245.216.135:8443
restart apache
in the /etc/nginx/conf.d
you should add this config file
162.245.216.135.conf
Code: Select all
server {
listen 162.245.216.135:80 default;
server_name _;
#access_log /var/log/nginx/162.245.216.135.log main;
location / {
proxy_pass http://162.245.216.135:8080;
}
}
old file 107.161.112.79.conf you must delete
after this
restart nginx
Re: vestacp change server ip
Posted: Sun May 04, 2014 5:30 pm
by uday4ru
Great thanks for help , vps is up now on new ip.
thanks
Re: vestacp change server ip
Posted: Fri Oct 17, 2014 6:16 pm
by ae9803
Hello,
I know this is an old topic, but after following the steps, I still cannot get nginx started. It still shows the old IP address even after I changed it in the conf. file. Any advice? Starting nginx: nginx: [emerg] bind() to 104.131.86.75:80 failed (99: Cannot assign requested address) The old config file has been deleted and the new one has been created to 104.131.54.137.conf still doesnt work.