Removing associated subdomains
The shift away from "addon domains" to simply domains was great, removing the complicated and unnecessary creation of "associated subdomains." I am on a bit of a cleaning spree of my server, trying to cleanup unnecessary AutoSSL requests, bad DNS entries, etc. However I cannot for the life of me figure out how to remove old associated subdomains from domains created previously by using "addon domains." Is there a way to do this, because I can't seem to find a guide anywhere, but maybe I am searching the wrong keywords.
I appreciate any feedback so I can get back to cleanup.
P.S. On the topic of cleanup, we really need to see the ability to choose what service domains are enabled for what accounts and whether for just main domains and/or subdomains.
-
Hey there! That subdomain is actually still a requirement, as that is how we create the Apache vhost. You can see this information in the cPanel >> Domains screen: so you won't want to go too crazy on cleaning or removing those. 0 -
Thanks, but maybe I am mixing something up. I had recently added new domains to a client with the updated Domains screen and none of those newly added domains had an associated subdomain. However a domain that was added prior to the Domains screen update and the removal of the addon domains screen, still has an associated subdomain. If it is a requirement, why do the newly added domains not have any? Thanks! 0 -
Can you click the gear wheel in the top right of your screenshot and see if that gives you the option to show associated subdomains? They may just be hidden from your interface to avoid confusion. 0 -
I know about the gear and option, I did already click it prior to the screen shot so that I could see the associated sub domain for the first domain listed. But regardless here is the image showing the present status of the gear button. To expand on it I can show the pages when you manage the domains, first being the old domain and the second the newer: 0 -
Thanks for that confirmation. I'm honestly not sure, so it might be best to submit a ticket to our team so we can check the system directly. 0 -
Ticket ID #94536008 0 -
Thanks for that - I'm following along with that ticket on my end now. 0 -
So an update for everyone, it appears I was getting confused with the new Domains interface and being unable to clearly differentiate add-on and parked/alias domains. To clarify there is no clear distinction in the new Domains interface which should probably be fixed, but here are the general rules I have now gathered: - Parked/Alias domains can only be for the primary domain
- If the check-box "Share Document Root" is unchecked, even with the same path as the primary domain, it will become an add-on domain with an associated subdomain
- You can confirm if a mistake like this was made by going here:
cat /var/cpanel/userdata/[user]/main
- You can confirm if a mistake like this was made by going here:
- Add-on domains require an associated subdomain with cPanel for vhost reasons, don't understand that fully
- Only way to prevent associated subdomains from resolving is modifying your DNS entries
- Add-on domains shouldn't create additional service subdomains, but you can remove them by following this:
0 -
Thanks for sharing all that! 0
Please sign in to leave a comment.
Comments
9 comments