Skip to main content

Modify the default subdomains added to each domain?

Comments

4 comments

  • cPanelMichael
    Hello, Rather than deleting the subdomains, you can simply exclude them from the AutoSSL feature if that's the primary reason you want them removed. You can exclude subdomains from the AutoSSL feature for a specific account using the following option in cPanel:
    0
  • Patrik
    Hi, Ah yes I could do it per account I suppose, thanks. But is it possible to do on a server-wide scale, so they aren't added at all? I understand that Webdisk, Mail and so on would be affected, but this particular server will do nothing but host websites.
    0
  • cPanelMichael
    Hello, You can disable proxy subdomains globally via the following options under the "Domains" tab in "WHM >> Tweak Settings": "Proxy subdomains" "Proxy subdomain creation" "Thunderbird and Outlook autodiscover and autoconfig support (enables proxy subdomain and SRV record creation)" Then, to remove the existing proxy subdomain records for all accounts, run the following command:
    /scripts/proxydomains remove
    Note the "mail" and "www" entries are not proxy subdomains and thus will remain on the system as aliases. It's not possible to remove these entries by default without modifying the default Apache template: Disable default www entry for all subdomains and hostname Add option to control ServerAlias www entries for subdomains Thank you.
    0
  • Patrik
    Awesome, thanks!
    0

Please sign in to leave a comment.