2 domains 1 IP

From Cheatsheet
Revision as of 23:51, 23 October 2014 by Admin (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adding domains to Dedicated ips

Sometimes the customers want this done for certain applicational uses. This can be done if a SSL certificate is not installed on the dedicated ip address.

To place more that one domain on a dedicated IP go to:

cd /var/cpanel/userdata/

Choose the domains user that we are adding to the ip example: username/domain.com

vim username/domain.com 

Change the ip to the new ip, save the file.

/scripts/rebuildhttpdconf
/etc/init.d/httpd stop
/etc/init.d/httpd stop
/etc/init.d/httpd startssl

Wait for it to propagate, and viola!