Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta Web Interface
  • Search

Multiple IP not showing in VestaCP

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
HDPixel
Posts: 5
Joined: Mon Feb 17, 2014 5:14 pm

Multiple IP not showing in VestaCP
  • Quote

Post by HDPixel » Mon Feb 17, 2014 5:21 pm

I have setup multiple IPs on my Centos 6.5 (64bit) vps. I can ping to each ip from the outside. However, VestaCP doesn't list them when I try to add a domain. I restarted the VestaCP and the server with no luck. Any ideas?

[root@vps network-scripts]# ls -la ifcfg-eth*
-rw-r--r-- 1 root root 277 Feb 14 16:00 ifcfg-eth0
-rw-r--r-- 1 root root 98 Feb 15 23:22 ifcfg-eth0:1
-rw-r--r-- 1 root root 98 Feb 15 23:22 ifcfg-eth0:2
-rw-r--r-- 1 root root 98 Feb 15 23:22 ifcfg-eth0:3

My ip file looks like this.

[root@vps network-scripts]# cat ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
ONBOOT=yes
IPADDR=XX.XXX.XX.XX
NETMASK=255.255.255.0
IPV6INIT=no
Top

HDPixel
Posts: 5
Joined: Mon Feb 17, 2014 5:14 pm

Re: Multiple IP not showing in VestaCP
  • Quote

Post by HDPixel » Tue Feb 18, 2014 11:02 pm

I figured it out a temporary fix. I wish I could do this on the VestaCP interface. I have a feeling that later when I install the SSL certificate, or the panel does an update, It will overwrite to the default IP. :(

Please let me know if there is a fixed for this.

1. Create a user, log in as the user and create a domain web host account

3. Create a file for the additional ip (1.2.3.4)

1.2.3.4.conf
NameVirtualHost 1.2.3.4:8080
Listen 1.2.3.4:8080

2.Add the IPs (1.2.3.4) to the file /etc/httpd/conf.d/mod_extract_forwarded.conf and edit line below

#Line 58
MEFaccept 127.0.0.1 1.2.3.4

3. Edit the configuration for the domain created earlier.
Go to the home directory for the account
/home/$account_dir$/conf/web

4. Edit the file httpd.conf and nginx.conf and replace the ip to what you would like to use.
Top

demian
Posts: 543
Joined: Thu May 16, 2013 5:19 am

Re: Multiple IP not showing in VestaCP
  • Quote

Post by demian » Wed Feb 19, 2014 7:03 am

Perhaps, You add IP manual

try to execute the command

Code: Select all

sudo v-update-sys-ip 
how ever... better to add new IP from the panel
Top

HDPixel
Posts: 5
Joined: Mon Feb 17, 2014 5:14 pm

Re: Multiple IP not showing in VestaCP
  • Quote

Post by HDPixel » Wed Feb 19, 2014 11:02 pm

I would like to confirm that executing the command below on my Centos 6.5 populated the IPs in the Control Panel interface. Yes, I now see the IP menu which has the interface to add more IPs.

Thank you so much.

Code: Select all

# > /usr/local/vesta/bin/v-update-sys-ip

demian wrote:Perhaps, You add IP manual

try to execute the command

Code: Select all

sudo v-update-sys-ip 
how ever... better to add new IP from the panel
Top

Spooney
Posts: 15
Joined: Sun May 25, 2014 4:58 am

Re: Multiple IP not showing in VestaCP
  • Quote

Post by Spooney » Fri Mar 18, 2016 12:46 am

Thanks HDPixel that was the command I was looking for!

/usr/local/vesta/bin/v-update-sys-ip
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Multiple IP not showing in VestaCP
  • Quote

Post by skamasle » Sat Mar 19, 2016 12:30 am

You dont need run it from cli, so you can run it from vestacp -> IP -> menu -> Reread IP and it do the same.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Interface”



  • 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