Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    12
    Likes Received:
    0
    Trophy Points:
    151
    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,742
    Likes Received:
    76
    Trophy Points:
    353
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    WHM
    Tweek Setting
    System
    Always redirect users to the ssl/tls ports when visiting /cpanel, /webmail, etc.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice