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 prevent WHM/cPanel to create subdomains of domain?

Discussion in 'General Discussion' started by sapphire91140, Feb 17, 2018.

  1. sapphire91140

    sapphire91140 Registered

    Joined:
    Feb 17, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Estonia
    cPanel Access Level:
    Root Administrator
    In WHM =>Server Configuration => Tweak Settings I disabled "
    Restrict document roots to public_html". Which made life much easier, espesially if one single cpanel account has many addon domains and subdomains, which made main domain folder a huge trashbin. Now addon domains and all subdomains have separate folders outside of main domain folder.

    The question is, how to get rid of cPanel's pointless subdomains generation?
    For example: main domain = somehost.com; now I add addon domains into a separate folders, lets say cooldomain.com and amazinghost.com.
    Why do I turn it off that cPanel generates huge amount of subdomain, that have absolutely no need, but stores garbage.
    cPanel will make:
    1)cooldomain.com.somehost.com
    2)www.cooldomain.com.somehost.com
    3)amazinghost.comsomehost.com
    4)www.amazinghost.com.somehost.com

    It is terribly annoying and I want to get rid of it. No unneeded subdomains. How can I turn it off? (cPanel even denies to delete those trash subdomains, if addon domain not deleted either).
    I want to get clean and pleasant to use environment. Also if there are 10 domain + 10 subdomains on each - there will be such a huge mess of unneeded subdomains, that it's impossible without going angry find needed ones.

    Any solution please? Or if currently none available, could you please include that feature in future updates for WHM/cPanel?

    With best regards,
    Roman
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,272
    Likes Received:
    2,154
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Roman,

    A subdomain (addon.domain.tld) is necessary when creating an addon domain name due to the nature of how cPanel configures addon domain names. We document how this works at:

    How Your Server Handles Domains and Virtual Hosts - cPanel Knowledge Base - cPanel Documentation

    I encourage you to vote for the following feature request if you'd like to see a change to how this works:

    Remove requirement for a subdomain when creating an addon domain

    Note that additional subdomains (e.g. cpanel, whm, webmail) are part of the Proxy Subdomain feature:

    Proxy Subdomains Explanation - cPanel Knowledge Base - cPanel Documentation

    You can disable Proxy Subdomains under the "Domains" tab in "WHM >> Tweak Settings".

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sushlik

    sushlik Active Member

    Joined:
    Mar 2, 2012
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    I totally agree with Roman. On the one hand I understand, that the system needs to create a subdomain for each addon-domain, on the other hand I don't understand, why cPanel is displaying all these sub-domains among all modules where the user would create assets such as mail-accounts, ftp-accounts and even worse: AWstats -> Addon domains are not displayed there at all!

    I have found a feature request to solve this issue, but with currently 22 votes I'm afraid that most other cpanel-hosting-providers don't give a dime on user-experience-design.

    So my question is, @cPanelMichael, what would you recommend to bring this issue to a brighter public? How can we encourage other cpanel-providers to give their vote on this?

    I'm currently migrating the last clients from our legacy system and already faced cancellations and a handful of clients migrating to other providers, only because they are too confused with cPanel-GUI … :(
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,272
    Likes Received:
    2,154
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi @sushlik,

    Here's a link to another feature request that's partly related and has more votes:

    True Multi Domain Support (Multiple Certificates & IPs per Acct)

    While it centers around SSL certificates, part of the request is as follows:

    I encourage you to vote and add feedback to this request as well. When adding the feedback, can you describe how the subdomain creates user confusion in tasks such as email creation? This type of specific feedback will help us to better understand the need for a change.

    I've reached out to one of our Community Managers to inquire about merging these two feature requests to ensure the number of votes is accurately reflected. I'll update this thread again once a decision is made.

    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