Announcement

Collapse
No announcement yet.

How to assign a Dedicated IP to a addon domain in WHM

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to assign a Dedicated IP to a addon domain in WHM

    I have just changed my control panel from Plesk to Cpanel. I have created a account named as “mydomain.com” using WHM and assigned xx.xx.xx.10. Then I added “mywebsite.com” as a addon domain. I want to assign a dedicated IP to addon domain. I have not found any option in WHM. How can I do that.

  • #2
    Hi.

    Unfortunately there is no way to change addon domain's IP address from the WHM. You can assign IP A record from the WHM >> DNS setting but you can not edit the apache configuration file httpd.conf from the WHM. You will have to do it using shell access.

    Please contact technical support so someone will do it for you

    Regards,
    Kieran A.

    Comment


    • #3
      Hello,

      In order to assign the dedicated Ip to a sub-domain, please follow the steps link

      1.Login to WHM

      2.Follow the Tab :: Main >> DNS Functions >> Edit DNS Zone

      3.select the main domain "mydomain.com" and add the A record for mywebsite.com to the IP you want to assign

      4.Then edit the DNS zone of "mywebsite.com" and point all the A record to dedicated IP.

      5.Login to server with SSH and root user

      6.Edit the file /var/cpanel/userdata/username/subdomain.domain.com file, change the IP and save it.
      'username' represents the cPanel username of the account mydomain.com.

      7. Run #/scripts/rebuildhttpdconf

      8. Run #//etc/init.d/httpd restart

      Hope this will help you
      Priscilla,
      WHUK VPS Supp0rt.

      Comment

      Working...
      X