Change the IP address of the VHCS System On Debian-Linux Release Technology-Debian information. The following is a detailed description. 1. Modify/etc/network/interface
Of course, you can bind two IP addresses here. The specific process is omitted.
2. log on to VHCS2 and add an IP address to IP address management.
3. Make sure that all reseller and user do not use the IP address you want to delete
The reseller can change it in the control panel, but the user cannot (at least currently v2.4.6.2 is the case). Therefore, you can only change the database directly.
1) modify the ip_id corresponding to all domain names in the domain table for your newly added ip id
2) modify the ip addresses occupied by all agents in the reseller table (note that multiple ip addresses are separated by commas)
4. Modify the zone data in bind to point to your new IP address.
Or
Modify the apache configuration template of vhcs
/Etc/vhcs2/apache/parts/als_entry.tpl
Set the first line from
Change
Then use vi to edit
/Etc/vhcs2/apache/working/vhcs2.conf
Replace
Domain.com is your domain name
192.168.1.2 is your new IP Address
Replace with regular expressions.
Finally, copy
/Etc/vhcs2/apache/working/vhcs2.conf
To
/Etc/apache2/site-availabe/vhcs2.conf
At this point, you do not need to restart the system (of course you need to restart apache), so you can replace the IP address.
I think this function should be improved in the VHCS control panel, and the implementation is not too complicated.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.