New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to Change Site IP Address

Started by glen, March 22, 2018, 02:57:57 PM

Previous topic - Next topic

glen

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.

Glenn

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

kartalcicek

Hi

I want to give a special ip for each website. how can I do this?

Glenn

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

madmax

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.

Garyrad0564

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.

ginevra

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.