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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page