1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirecting https://domain:2083 to https://host:2083

Discussion in 'General Discussion' started by goodmove, Jul 7, 2004.

  1. goodmove

    goodmove Member

    Joined:
    May 12, 2003
    Messages:
    633
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I have a newbee question. :)

    How do I get https://domain:2083 redirected to https://host:2083 so the user won't get a warning about name mismatch for the SSL certificate. Assuming there is an SSL certificate installed for the server's hostname. This is when a user types in http://domain.com/securecontrolpanel.


    The related file: /usr/local/cpanel/cgi-sys/sredirect.cgi looks like this:
    I've tried to put the hostname instead of $ENV{'HTTP_HOST'}, but that didn't work.

    Is there a solution to this?
     
  2. OCX

    OCX Member

    Joined:
    Sep 20, 2003
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    what ive done to match the ssl/cpanel login..

    i made my hostname be (in WHM intital setup)
    secure.mydomainname.com

    i gave secure.mydomainname.com an IP #

    i created a self signed cert for secure.mysitename.com

    restarted apache and walla my clients login to there cpanel from
    https://secure.mysitename.com:2083

    rather then having 3 ! Yellow warning flags it shows 1 flag and 2 green flags

    to get it NOT to every show up the warning prompt you ll have to purchase a real SSL Cert
    not a self signed created cert..

    you can get a chainedSSL cert for about 20$ from ev1servers.net
    and just do the above settings for the real cert

    just dont create a subdomain with secure.mysite.com its not needed


    hope this helps


    OCX
     
  3. goodmove

    goodmove Member

    Joined:
    May 12, 2003
    Messages:
    633
    Likes Received:
    0
    Trophy Points:
    16
    You see, the cert is not self signed. It's a Comodo cert and it works fine (no warnings) as

    https://secure.mysitename.com:2083/

    What I wanted to know is, how to get into Cpanel with

    https://userdomain.com:2083/

    without any warning popup. :)


    btw, how do you get your users to login with the hostname? Do you tell them the URL or do you redirect them?
     
  4. OCX

    OCX Member

    Joined:
    Sep 20, 2003
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    i let them know


    the only way i know of to not get a warning for
    https://domain.com:2083
    is to give every client an IP and Cert..lol..pointless really..


    thats why i only use one way of logging in.they all use it.
    and easyer to track whos loggin in too
     
  5. concreteman

    concreteman Member

    Joined:
    May 22, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    sillycone valley
    user ssl for port 2083

    there is another way - with the cert you have now you can use https://secure.mysitename.com/~user:2083 and that won't get warnings or you can get a better cert for server wide inquires I think the call them wildcard certs or they have some other names for them. I think they start around 300.00 and you can supposedly use them on a single box, some are limmitted to a number of servers. DO some homework though cause the price is quite different and if you mess up on the start it will cost you a great deal of time and money - or get someone to help you with it.
     
    #5 concreteman, Jul 27, 2004
    Last edited: Jul 27, 2004

Share This Page