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.

how to redirect all SSL traffic to a certain domain?

Discussion in 'General Discussion' started by SoftDux, Oct 21, 2008.

  1. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi all

    How do I redirect all SSL traffic to a certain domain? I want to setup a non-used domain on the server, which will then have a purchased SSL cert - for use by all my clients on /cpanel or /whm or /webmail.

    The thing is, I don't want to use the servers hostname for this, as I want my resellers to make use of this domain for their clients as well, and thus keep it totally anonymous.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I recommend going to Tweak Settings in WHM and for the setting "When visiting /cpanel or /whm or /webmail with SSL, you can choose to redirect to:" select "SSL Certificate Name."
     
  3. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi David,

    You always point out the obvious, but this doesn't answer my question!

    How do I tell WHM to use the SSL on domain xyz, and NOT the main servers host name?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    WHM can only have 1 SSL certificate attached to it at this time. As a result, redirecting to SSL Certificate Name will redirect to the SSL Certificate for domain xyz if that is the certificate that has been applied to WHM.
     
  5. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Yes, that's what I want.


    The server's are all called mercury.mydomain.com, venus.mydomain.com, jupiter.mydomain.com, etc.

    So, when I use the self signed cert (on /webmail or /cpanel or SSL POP3/IMAP/STMP), it gives the client an error saying that the cert is invalid, and displays the venus.mydomain.com self signed cert.

    Now, instead of purchasing a wild cart cert for mydomain.com, I want to get a wildcart cert for "whitelbaleddomain.com" (this is just an example), and then use that cert for all SSL related traffic.

    But, how do I then attached the purchased cert to that server's WHM, and tell WHM to use it on that domain, and redirect all traffic to that domain?


    For example, when a client visits http://theirdomain.com/cpanel, I want it redirected to https://whitelbaleddomain.com/cpanel

    And when a client sets up an email address, the message for the SSL stuff should read mail.whitelbaleddomain.com instead of mail.venus.mydomain.com


    Does this make sense? How do I accomplish this?
     
  6. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    So, can this be done?
     
Loading...

Share This Page