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!

Properly disable redirect to hostname?

Discussion in 'General Discussion' started by UxCrazy, Jul 24, 2018.

Tags:
  1. UxCrazy

    UxCrazy Registered

    Joined:
    Jul 24, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Hi guys,

    I have canceled cPanel redirection to the hostname by turning off "Always redirect to SSL/TLS".
    How ever when trying to access "domain.com:2083" it redirects to "xxxx.hostaname.com:2083" unlike accessing "domain.com/cpanel" which works fine and doesn't redirect to the hostname..

    What can be done to solve this? :)

    *Any other solutions to separate WHM access will be welcomed :)
     
  2. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    189
    Likes Received:
    23
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    WHM > Tweak Settings > Redirection

    Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs > Off
    Non-SSL redirect destination > Origin Domain Name
    SSL redirect destination > Origin Domain Name
    Require SSL for cPanel Services > Off

    Restart your web browser., there will be no redirects anymore.
     
  3. UxCrazy

    UxCrazy Registered

    Joined:
    Jul 24, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Those are my current settings,like i mentioned there are no redirections when accessing domain.com/capnel or cpanel.domain.com.

    I’ve cleared cache, re-started the browser, tried different browsers, incognito mode... still when trying to access via the port (domain.com:2083) it is redirected to (xxxx.hostname.com:2083) which i want prevent
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,344
    Likes Received:
    1,852
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @UxCrazy,

    Can you run the below command and let us know the output?

    Code:
    grep ssl /var/cpanel/cpanel.config
    Also, keep in mind the best approach to solve this issue is to ensure a signed SSL certificate is installed for the individual domain name. You can ensure a free signed SSL certificate is installed on the domain name via the AutoSSL feature:

    Manage AutoSSL - Version 72 Documentation - cPanel Documentation

    Thank you.
     
    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