Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

vestacp change server ip

General questions about VestaCP
Post Reply
  • Print view
Advanced search
17 posts
  • 1
  • 2
  • Next
uday4ru
Posts: 10
Joined: Fri May 02, 2014 3:13 pm

vestacp change server ip
  • Quote

Post by uday4ru » Fri May 02, 2014 3:16 pm

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
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: vestacp change server ip
  • Quote

Post by imperio » Fri May 02, 2014 3:31 pm

Hi,
you can use this command in the ssh

Code: Select all

v-add-sys-ip IP MASK
Top

uday4ru
Posts: 10
Joined: Fri May 02, 2014 3:13 pm

Re: vestacp change server ip
  • Quote

Post by uday4ru » Sat May 03, 2014 1:26 pm

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
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: vestacp change server ip
  • Quote

Post by imperio » Sat May 03, 2014 1:39 pm

https://162.245.216.135:8083
already working
Top

uday4ru
Posts: 10
Joined: Fri May 02, 2014 3:13 pm

Re: vestacp change server ip
  • Quote

Post by uday4ru » Sun May 04, 2014 10:19 am

yes i added ip and it is working. thanks for your fast help sites are also up.

http://tamilcinema.info/
thanks again
Top

uday4ru
Posts: 10
Joined: Fri May 02, 2014 3:13 pm

Re: vestacp change server ip
  • Quote

Post by uday4ru » Sun May 04, 2014 10:54 am

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]
Top

uday4ru
Posts: 10
Joined: Fri May 02, 2014 3:13 pm

Re: vestacp change server ip
  • Quote

Post by uday4ru » Sun May 04, 2014 11:53 am

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]
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: vestacp change server ip
  • Quote

Post by imperio » Sun May 04, 2014 2:44 pm

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
Top

uday4ru
Posts: 10
Joined: Fri May 02, 2014 3:13 pm

Re: vestacp change server ip
  • Quote

Post by uday4ru » Sun May 04, 2014 5:30 pm

Great thanks for help , vps is up now on new ip.
thanks
Top

ae9803
Posts: 2
Joined: Fri Oct 17, 2014 6:14 pm

Re: vestacp change server ip
  • Quote

Post by ae9803 » Fri Oct 17, 2014 6:16 pm

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.
Top


Post Reply
  • Print view

17 posts
  • 1
  • 2
  • Next

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password