Putting add-on domains on dedicated IPs

Issue :

The main domain and the add-on domains need to be on different dedicated IPs.

Fix :

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

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

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

And change the IP field to in each to your desired one.
Then you have to rebuild apache using /scripts/rebuildhttpdconf
Restart apache service.
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.

Filed Under: Quick fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (1)

Leave a Reply | Trackback URL

  1. [...] This post was Twitted by InstaCarma [...]

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com