The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

add-on domain OR sub-domain dedicated IP for SSL

Discussion in 'General Discussion' started by inetbizo, Nov 6, 2011.

  1. inetbizo

    inetbizo Well-Known Member

    Joined:
    Mar 28, 2008
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New Smyrna Beach, FL US
    cPanel Access Level:
    Root Administrator
    Twitter:
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please specify what script precisely or what you are wanting done. There are already feature requests to allow multiple IPs per account, so I'm trying to determine if this is some feature request or you require assistance in having steps on how to assign multiple IPs to an account.

    It is actually easy to assign a different IP to a subdomain or addon domain. You can simply edit /var/cpanel/userdata/username/sub.domain.com and /var/cpanel/userdata/username/sub.domain.com_SSL files to provide a different IP there, then you can edit the DNS zone in WHM > Edit DNS Zone for the addon domain and subdomain to have it use that other IP.

    At that point, you'd run the commands to rebuild Apache and restart it to have the new IP take effect:

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak111109
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
    I don't even know which cache script would impact this update since nothing should be cached if you use the above method to modify the IP for the subdomain or addon domain.
     
Loading...

Share This Page