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.

Force SSL login to /whm and /cpanel

Discussion in 'General Discussion' started by imacurious, Mar 23, 2005.

  1. imacurious

    imacurious Member

    Joined:
    Mar 9, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I want to force all resellers and their customers to use SSL login to /whm and /cpanel (ie. non-SSL login not allowed).


    Is there any way to redirect an ordinary login (non-SSL) to become a secure login for both?

    eg.
    http://www.reseller.com/whm redirects to
    https://www.reseller.com:2087 automatically

    - and -

    http://www.customer.com/cpanel redirects to
    https://www.customer.com:2083 automatically

    If above is possible, what scripts would I have to create for both resellers and their customers and where would they reside?



    I'm thinking it would be similar to the following, which was created to force all non-SSL webmail logins to default to an SSL login:

    1) I created a folder called swebmail inside the www folder of a customer account.
    2) Created an empty file called index.php
    3) Added the following four lines to this file
    <?PHP
    header("location https://customer.com:2096");
    exit;
    ?>

    This forced all www.domain.com/webmail logins to SSL login.

    I don't want to lose the 'forced' SSL login to webmail when implementing SSL login to /whm and /cpanel.
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    WHM
    Tweek Setting
    System
    Always redirect users to the ssl/tls ports when visiting /cpanel, /webmail, etc.
     
Loading...

Share This Page