The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

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

  1. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    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. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    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
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    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.
     
  6. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    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
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  8. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    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.
     
  10. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    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