Skip to main content

Redirect WHM, Webmail to specific domain instead of IP

Comments

7 comments

  • Infopro
    Have you tried accessing via example.com/cpanel or example.com/whm?
    0
  • BastienC
    Have you tried accessing via example.com/cpanel or example.com/whm?

    No, directly
    0
  • Infopro
    Are you aware of these settings? WebHost Manager "Server Configuration "Tweak Settings, Redirection tab
    0
  • BastienC
    Yes, I tried all 3 options for SSL Redirection destination, no luck.
    0
  • cPanelMichael
    Hello, There are no options available to automatically redirect users who utilize the specific port numbers in the URL. The options under the "Redirection" tab in "WHM >> Tweak Settings" are available to redirect users to the SSL/TLS ports when visiting /cpanel, /webmail, /whm, etc. Here's a post you may find helpful if you are open to a custom firewall workaround (it's for a different purpose but the same concept applies): SOLVED - Prevent domain.com:2082 logins Thank you.
    0
  • BastienC
    I'm not sure I get how this can help me, since myserver.mydomain.com already resolve to the same IP I'm trying to block the access from. Can I do something like this ? w.x.y.z|2083|myserver.mydomain.com|2083|tcp
    0
  • cPanelMichael
    Hello, It would only apply as a workaround if your accounts resolved to separate IP addresses and accessed cPanel/WHM via their domain name (e.g. domain.tld/cpanel). If it's the same IP address, then there's no other workaround I'm aware of. Thank you.
    0

Please sign in to leave a comment.