How to prevent WHM/cPanel to create subdomains of domain?
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
-
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. 0 -
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 , 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 " :( 0 -
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: [QUOTE]Adding a domain DOES NOT also result in a subdomain being created (negating all of the DNS and Apache overhead that comes with adding a subdomain)
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.0
Please sign in to leave a comment.
Comments
5 comments