By default cPanel supports the usage of one dedicated IP per account. You can get around this by editing few files on the cPanel server, Please check the same below
- Configuration file of a domain is stored under /var/cpanel/userdata/<username>/ directory, so for a sub-domain please edit /var/cpanel/userdata/$USER/$SUBDOMAIN.$DOMAIN change the IP value to a new ‘dedicated’ IP
# vi /var/cpanel/userdata/$USER/$SUBDOMAIN.$DOMAIN.COM
change the value of the option “IP” to the dedicated IP
- Now one you edit the file and you need to rebuild Apache configuration.
# /scripts/rebuildhttpdconf
- Edit the dns zone for the subdomain (which will likely be attached to the parent domain) and update the "A" record to point to that IP.
# vi /var/named/domain.com.db
and change the A record set for the sub-domain to the dedicated ip we assigned and restart named service
- Edit /etc/domainips and add an entry for that sudomain to point to the IP
dedicated ip>: subdomain.domain.com
- Save the file and rebuild the IP pool
# /scripts/rebuildippool
No comments:
Post a Comment