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:
    45,214
    Likes Received:
    1,937
    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...
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