The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Suspending a sub domain

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

  1. vincy

    vincy Member

    Joined:
    Mar 16, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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:
    14,448
    Likes Received:
    194
    Trophy Points:
    63
    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.
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
Loading...

Share This Page