Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SSL for a single domain works for all sites on the server

Discussion in 'General Discussion' started by watchtime, Feb 6, 2014.

  1. watchtime

    watchtime Registered

    Joined:
    Oct 28, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello!

    On the server (VPS c CentOS 6.5 and cPanel) installed self-signed SSL certificates for domain.com (is simple site) and sub.domain.com (is panel WHM/cPanel). So, when you open any site to HTTPS server site opens domain.com - with pictures and stuff. (Example https://other_site.com). IP is only one. That is not configured correctly? How to disable HTTPS for all domains where there is no actual certificate? (cPanel/WHM has in menu "Manage SSL Hosts" the domains for which the certificate is created.)
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    If the account is assigned a shared IP address, and a SSL certificate is installed on that IP address, than any secure request to a domain name on that IP address will load the contents of the domain name the certificate is installed for. This is by design. You will need to assign a dedicated IP address to the account that uses the SSL certificate if you don't want that certificate applied to the other domain names on it's IP address.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. watchtime

    watchtime Registered

    Joined:
    Oct 28, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    How I can install into file .htaccess for dedicated IP or domain for which created self-signed SSL certificate? Or how I can disable https for all domains on server, which not has SSL?
    Now I see, that for search systems exist bad situation. Because, example Google and Bing indexing sites on the server, and creating wrong mirrors. For good site is added https with other content, and etc.
    Maybe I can disable HTTPS for each sites on the server without SSL? How?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    You will need to assign a dedicated IP address to the account with a SSL certificate via:

    "WHM Home » Account Functions » Change Site’s IP Address"

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. watchtime

    watchtime Registered

    Joined:
    Oct 28, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    But if IP on the server only one?
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    You will need to purchase an additional IP address and assign it to the account. Or, you could generate/install a self-signed certificate for each domain name on the server (Assuming your server supports SNI).

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice