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!

SOLVED Redirect proxy subdomain

Discussion in 'Security' started by plinet, May 2, 2017.

  1. plinet

    plinet Member

    Joined:
    Apr 15, 2017
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Slovakia
    cPanel Access Level:
    Website Owner
    Hi,
    can somebody tell me how to redirect http request on proxy subdomain to https?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,880
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. plinet

    plinet Member

    Joined:
    Apr 15, 2017
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Slovakia
    cPanel Access Level:
    Website Owner
  4. coolcom

    coolcom Member

    Joined:
    Mar 3, 2005
    Messages:
    21
    Likes Received:
    3
    Trophy Points:
    153
    Hello plinet,

    You do not need to re-direct in .htaccess.

    Go to WHM>Server Configuration>Tweak Settings>Redirection

    Select "Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as “Always redirect to SSL/TLS” [?]" and turn ON (default)

    This will re-direct your non-SSL logins to the SSL login.
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    In "WHM >> Tweak Settings", under the "Security" tab, verify the following option is enabled:

    Require SSL for cPanel Services

    This should result in access attempts to the non-https URL for proxy subdomains automatically redirecting to the secure URL.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. plinet

    plinet Member

    Joined:
    Apr 15, 2017
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Slovakia
    cPanel Access Level:
    Website Owner
    Hi,
    i am using engitron plugin so the auto redirecting is not working. But i figured it out. If somebody else need it, click on edit default.conf in engitron page, search for
    and in if statements change the default values with
    and its working now.:)
     
    cPanelMichael likes this.
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm happy to see the issue is now solved. Thank you for updating us with the outcome.
     
    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