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!

Disable automatic subdomains

Discussion in 'Bind/DNS/Nameserver' started by dnavarrojr, Oct 20, 2017.

  1. dnavarrojr

    dnavarrojr Member

    Joined:
    Feb 13, 2014
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Is it possible to disable cPanel/WHM creating subdomains for every domain? I disabled webdisk and don't need the subdomain created... I don't need "www" added to subdomains "www.sub.domain.com".
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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:

    Code:
     /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.
     
    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