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!

Suspending a sub domain

Discussion in 'Bind/DNS/Nameserver' started by vincy, Mar 24, 2012.

  1. vincy

    vincy Member

    Joined:
    Mar 16, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hi,

    Please tell me how can i able to suspend a subdomain

    Thanks in advance.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,565
    Likes Received:
    438
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can't that I know of, not unless that sub domain was created and given its own package via WHM. And if it was, you'd suspend it like any account.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you only want to disable Apache access, you could lock down the folder where it resides to redirect to the suspended page:

    Code:
    cd /home/username/public_html/subdomainfolder
    mv .htaccess .htaccess.baksuspended
    echo "RedirectMatch .* /cgi-sys/suspendedpage.cgi" > .htaccess
    chmod 000 .htaccess
    Please replace username with the cPanel username and subdomainfolder with the name of the subdomain folder.

    If you want to remove email services for the time being, place the subdomain into /etc/remotedomains file and take it out of /etc/localdomains file, then also revise any "MXCHECK-sub.domain.com=" entry to have remote listed for it.
     
    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