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!

how to change domain.com/webmail to mail.domain.com

Discussion in 'E-mail Discussion' started by jmginer, Oct 12, 2015.

  1. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Benifato, Spain
    I've do it, dont take this option:

    Non-SSL redirect destination > Hostname
    SSL redirect destination > Hostname

    But don't take effect.

    when I go to

    http://webmail.domain.com
    it redirects to: https://webmail.domain.com
    instead of: https://server.hostname.com on which I have a Comodo valid SSL
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,671
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    86
    Likes Received:
    16
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I have the same issue, only domain.com/cpanel, etc redirects to the proper place (SSL host), otherwise they go to cpanel.domain.com, which pops up a cert error.
    The test domain has clean DNS records, with proxy domains autogenerated with /scripts/proxydomains
    For example, cpanel A pointing to the server's IP, whm the same, etc.

    This happens with either Always redirect to SSL or the settings OP mentioned.
    Not a real big deal, because I've instructed users to use domain.com/cpanel and domain.com/webmail, etc.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,671
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    86
    Likes Received:
    16
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi, Michael. There must be some anomaly on both mine and OP's install, since more people aren't posting about this. Of course, they could be using the domain.com/cpanel and don't see the issue. Pretty sure I saw this during my initial setup, so I opted to use the /cpanel, etc format.

    The odd thing is that webmail. and cpanel. are broken, but webdisk. and cpcontacts. redirect just fine to the SSL.

    I've double-checked the settings, even tried changing them around, saving, then testing with some random domains.
    Cpanel. and webmail. always fail, webdisk. and cpcontacts. always work.


    Always redirect to SSL [?] On
    Proxy subdomains [?] On
    Proxy subdomain creation [?] On
    Thunderbird and Outlook autodiscover and autoconfig support (enables proxy subdomain and SRV record creation) [?] On
    Overwrite custom A records used for proxy subdomains [?] On
    Proxy subdomain override [?] Off
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,671
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    The redirect options found in "WHM >> Tweak Settings" are not designed for access attempts to proxy subdomains. To clarify, are you stating the behavior worked in the past but no longer functions as expected?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    86
    Likes Received:
    16
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I see, so I'm missing something in my head.
    This is a new setup, so the redirection I expected, which is as OP describes, never took place, save for webdisk.domain.com and cpcontacts.domain.com, which no one uses, so I just made sure my customers use domain.com/cpanel and domain.com/webmail
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,671
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    86
    Likes Received:
    16
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,671
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Thank you for taking the time to provide additional clarification. Note that it does appear to relate to the same issue discussed in this thread:

    SSL for proxy subdomain or redirection?

    As it stands, the current workaround is to disable proxy subdomains, and manually configure redirects for the subdomains to the proper SSL ports.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    86
    Likes Received:
    16
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Seems like an improper implementation of the feature, which would be called a bug, then, because no one will want to use said proxy subdomains when they present certificate errors by default, and manually reconfiguring redirects per domain is infinitely impractical.

    The horse is dead, but it's not my horse, since I've instructed my users to use domain.com/cpanel when I saw the behaviour described in this thread. Thanks for kicking it with me, though.
     
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