How to prevent WHM/cPanel to create subdomains of domain?

sapphire91140

Registered
Feb 17, 2018
1
0
0
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
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
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.
 

sushlik

Active Member
Mar 2, 2012
26
0
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 … :(
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,234
363
cPanel Access Level
DataCenter Provider
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:

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.