We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Multiple IP not showing in VestaCP
Multiple IP not showing in VestaCP
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
[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
Re: Multiple IP not showing in VestaCP
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.
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.
Re: Multiple IP not showing in VestaCP
Perhaps, You add IP manual
try to execute the command
how ever... better to add new IP from the panel
try to execute the command
Code: Select all
sudo v-update-sys-ip
Re: Multiple IP not showing in VestaCP
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.
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
how ever... better to add new IP from the panelCode: Select all
sudo v-update-sys-ip
Re: Multiple IP not showing in VestaCP
Thanks HDPixel that was the command I was looking for!
/usr/local/vesta/bin/v-update-sys-ip
/usr/local/vesta/bin/v-update-sys-ip
Re: Multiple IP not showing in VestaCP
You dont need run it from cli, so you can run it from vestacp -> IP -> menu -> Reread IP and it do the same.