UnixServerAdmin

Server Administration & Management

How to Putting add-on domains on dedicated IPs in cPanel

The main domain and the add-on domains need to be on different dedicated IPs, This cannot be done directly through cPanel/WHM. If suppose your cPanel account username is “USER” and domains are:

maindomain.tld
addondomain1.tld
addondomain2.tld

1.) Then you have to edit the following files using vim or pico editor :

# vim /var/cpanel/userdata/USER/maindomain.tld
# vim /var/cpanel/userdata/USER/subdomain1.maindomain.tld
# vim /var/cpanel/userdata/USER/subdomain2.maindomain.tld

2) change the IP field to in each to your desired one.

3) Rebuild apache using /scripts/rebuildhttpdconf

4) Restart apache service.

5) Edit DNS zone file of each domain and point A record to the new IP.

That should be it! All your domains should work flawlessly and you should also be able to install SSL , if required.

Advertisements

July 21, 2012 - Posted by | cPanel | ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: