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.

cPanel hostname alias?

Discussion in 'General Discussion' started by Drumrocker365, Feb 26, 2015.

  1. Drumrocker365

    Drumrocker365 Well-Known Member

    Apr 15, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hey guys,

    So, my cPanel is currently hosted at https://cpanel.<mydomain>.com:2083, and I am about to have my first re seller buy from me. He wants his clients to be able to go to https://cpanel.<hisdomain>.com:2083 to access my panel. Trouble is, I tried a CNAME and it works perfectly, except it's using my SSL certificate, therefore throwing up an SSL error. I also tried an iframe on his site to point to mine, but when you log in it's plain HTML and no style. Is what I'm trying to do even possible?


    UPDATE: Also tried A record, did same thing as CNAME
    #1 Drumrocker365, Feb 26, 2015
    Last edited: Feb 26, 2015
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Drumrocker365,

    Unfortunately, cPanel services (WHM, cPanel and Webmail) can only have 1 certificate at this time, which means that only your hostname certificate is able to be used.

    In 11.48, we did introduce the option for other services (dovecot/courier, exim) to have SSL certificates via SNI support. This is mentioned in the feature request on the service SSL certificates:

    SSL certificate per domain on all services | cPanel Feature Requests

    At this time, we do not yet have cpsrvd and the cPanel services set to allow multiple certificate hostnames. This means that it isn't possible by default to allow multiple certificates for cPanel access on port 2083. Now, if you use without the port, this would be on port 443 (https) and should allow an SSL if that exists on the domain name to function due to going through Apache instead of cpsrvd for that connection, although additional configuration would be required to use another SSL in place of the one at these locations that would be hard-coded into /usr/local/apache/conf/httpd.conf file:

                SSLCertificateFile /var/cpanel/ssl/cpanel/mycpanel.pem
            SSLCertificateKeyFile /var/cpanel/ssl/cpanel/mycpanel.pem
            SSLCertificateChainFile /var/cpanel/ssl/cpanel/mycpanel.pem

Share This Page