UnixServerAdmin

Server Administration & Management

How to 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 .

1. If suppose your cPanel account username is “USER” and domains are:

maindomain.tld
addondomain1.tld
addondomain2.tld

2. Then you have to edit the following files using vi editor

# vi /var/cpanel/userdata/USER/maindomain.tld

# vi /var/cpanel/userdata/USER/subdomain1.maindomain.tld

# vi /var/cpanel/userdata/USER/subdomain2.maindomain.tld

3. Change the IP field to in each to your desired one. Then you have to rebuild apache using

# /scripts/rebuildhttpdconf

4. Restart apache service.

# /etc/init.d/httpd restart

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

October 7, 2011 Posted by | cPanel, DNS | , , | Leave a comment