Control Web Panel
WebPanel => How to => Topic started by: glen on March 22, 2018, 02:57:57 PM
-
Hi
I want to give a special ip for each website. how can I do this?
example
aaa.com : 187.158.62.32
bbb.com : 107.187.25.95
ccc.com : 90.107.65.45
I want to create it with different ip addresses like this. I have more than one ip address on the server.
-
Point the sites A record to the ip address you want to use in DNS , just make sure the IP has been added to the servers adapter first
-
Hi
I want to give a special ip for each website. how can I do this?
-
you can add a www record for each domain to its own ip address and add the ip addresses to the servers network cards or as virtual to the single network card your isp will need to give you ip addresses
-
Or go to "User Accounts" -> "list Accounts" Edit the account that has the domain you want to have its own ip and change the sites IP there.
-
Click on the domain name for which you wish to change the IP address. Click on your site hostname. Select the IP address you wish to use for this domain. Click on the Update button to save your changes. Click on the Site tab.
-
Create file: /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE="eth0:0"
BOOTPROTO=static
ONBOOT=yes
TYPE="Ethernet"
IPADDR=80.80.25.25
#HWADDR=00:0C:29:28:4C:4C
#GATEWAY=80.80.25.1
NETMASK=255.255.255.0
do this for each additional IP address, you only need to increase virtual interface number by one for each additional IP.
Like eg. eth0:1, eth0:2, eth0:3 …
**if you don’t have HWADDR then delete that line.
Restart Network
service network restart
Check all IP’s configured on the server
ifconfig
if your new IP address is listed then you have successfully added a new IP address.