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 and host.mydomain.com

Discussion in 'General Discussion' started by rjn, Aug 11, 2003.

  1. rjn

    rjn Member

    Joined:
    Mar 29, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    hello,

    I just installed a WHM gen'd cert which works fine for my standard docroot.

    I have a virtual host designated by a different hostname (e.g.- hostname.mydomain.com) that points somewhere other than my standard docroot

    For this second case using https:// requests to hostname.mydomain.com point to my docroot.

    I've been digging through the forums but haven't found an answer... any help much appreciated.

    rjn

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    So let me get this straight. You bought a cert for host.domain.com. You want insecure traffic to go to one place and secure traffic to go to another?

    cPanel.net Support Ticket Number:
     
  3. rjn

    rjn Member

    Joined:
    Mar 29, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    hi ciphervendor,

    sorry... i'll be more clear:

    I setup a WHM-generated cert for mydomain.com.

    problem #1
    When I access https://www.mydomain.com/ I get the Security Alert dialog telling me the cert is untrusted, doesn't match the name of the site.

    Proceeding displays the page but the "Lock" in the browser does not appear.


    problem #2
    When I access https://hostname2.mydomain.com/ (where hostname2 is a separate Virtual Host I have configured, off the same domain name as #1) the main docroot for mydomain.com is returned instead of the Virtual Host.


    If I'm still unclear about something let me know, this is the first time I have gone through the cert setup process.

    thanks.

    cPanel.net Support Ticket Number:
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    You bought the cert for domain.com so www.domain.com won't ever be secure. You will need to buy a cert for www.domain.com if you want that subdomain to be secure.
    Open your apache config up and see where the document path for hostname.domain.com goes to. Change it as you see fit and restart apache.

    cPanel.net Support Ticket Number:
     
  5. rjn

    rjn Member

    Joined:
    Mar 29, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    So I need to a separate cert for each hostname off my domain? Is this going to require separate IP addresses, or can I do all this off one IP as long as the domain is the same?

    re:hostname docroot, it is correctly configured, only returns main docroot when using https.

    cPanel.net Support Ticket Number:
     
  6. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    You need a cert for each subdomain you want to secure. If you want to offer a shared SSL cert to your clients they can access your cert by using https://sub.domain.com/~username/ Also, each SSL cert requires a dedicated IP.
    Check the path in the https virtual host entry in your apache config for this domain. Something is not configured correctly.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page