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.

Addon Domains Issue On Primary Domain With SSL

Discussion in 'Bind / DNS / Nameserver Issues' started by mavetech, Jan 7, 2015.

  1. mavetech

    mavetech Registered

    Joined:
    Jan 7, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hey guys, this is my first thread and I've just joined and did an introduction. I'm hoping I'm in the right section about this situation I have, otherwise, please move to the right section. I've tried to searched the forum but didn't found what I was looking for or if I missed it, pleased point me to the right thread that is existing already.

    So, here's my situation and I haven't consulted this issue with my hosting provider as I wanted to know if there is something I can about this, and if things are beyond my technical skills, I will submitting ticket with my host.

    I have a primary website hosted with SSL, and is working very well without any issues. However, all addon domains when accessed with https://addondomain.com/https:www//addondomain1.com, it can be accessed with the primary domain's homepage. Another bad news is that, one of the addon domains is indexed in Google when access through site:addondomain.com as https://addondomain.com

    The only website that has SSL is the primary domain and none of the addon domains have SSL.

    Searching online I've found a suggestion from justhost, which recommends using this in the .htaccess.

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.domain.com$
    RewriteCond %{SERVER_PORT} ^443$
    RewriteRule ^(.*)$ http://www.domain.com [R=301,L]
    
    I've tried to put that inside the addon domain's .htaccess right at the very beginning of the .htaccess entry, but didn't solve the problem.

    Now, my question is; how and what can I do to prevent this from happening?


    Thanks in advance! :)
     
  2. mavetech

    mavetech Registered

    Joined:
    Jan 7, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I can't modify the post above... I don't see any options, so I'll just post additional information as an additional post. I've seen one thread which I find it somewhat relevant;
    http://forums.cpanel.net/f5/shared-ssl-redirect-https-http-337401.html

    If cheap SSL is possible solution in order to redirect https to http, would it be possible to install additional SSL certificate? My host provided me with a dedicated IP address in which all my domains are hosted.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    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, then 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 can assign a dedicated IP address to each addon domain name if you don't want to install a SSL certificate for each addon domain name. Documentation on how to do this is at:

    Assigning Dedicated IPs to Subdomains

    Thank you.
     
  4. mavetech

    mavetech Registered

    Joined:
    Jan 7, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi Michael, thanks for your reply.

    All domains are in one dedicated IP(host provided) and only one domain(primary domain) has SSL and all addon domains don't have any SSL and not planning of installing SSL for addon domains.

    Do I need a dedicated IP for the addon domains? Or, do I need a dedicated IP solely assigned to the primary domain with SSL and another dedicated IP for all the addon domains. I'm not sure if that is a possible option. I haven't consulted my host, yet.

    Do I have any other options?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You will need to assign a separate IP address for your addon domain names. Any secure request to a domain name on the primary domain's IP address will load the contents of the domain name the certificate is installed for regardless of if it's a shared IP address.

    Thank you.
     
Loading...

Share This Page