Welcome to Centmin Mod Community
Become a Member

suspend/unsuspend domain

Discussion in 'Feature Requests & Suggestions' started by handsomechap, Feb 6, 2015.

  1. handsomechap

    handsomechap New Member

    6
    0
    1
    Dec 30, 2014
    Ratings:
    +0
    Local Time:
    6:17 PM
    I understand that centminmod is more intended to be used as a personal hosting environment rather than for commercial hosting, but I for one am definitely intending on using it on a commercial server to host some clients domains. I could see some benefit in some simple domain management/administration as I'm sure many users including myself will/do use it to host commercial websites for others.


    One thing I could see would be easy to implement would be a way to quickly suspend/unsuspend a domain if needed (such as it is hosting a compromised website and you want to stop it being accessible until it can be fixed or if you have a client who hasn't paid a renewal and you want to suspend site until they do pay)

    Firstly 2 new alises perhaps:
    cmmsuspend <domain_name>
    cmmunsuspend <domain_name>

    A new folder in /home/nginx/domains/ called suspendedpage which will just contain an index.html with a banner saying whatever you want such as 'this domain is currently suspended, if it is your domain please contact support'

    cmmsuspend would just run a script to copy the domains existing domain.conf file to domain.conf.suspended and change the domain.conf file for the domain to point all requests to /home/nginx/domains/suspendedpage/ and unsuspend would just remove the domain.conf file and rename the domain.conf.suspended file back to domain.conf


    Perhaps also a simple command to view all currently suspended domains:

    new alias: cmmsuspendcheck

    check /usr/local/nginx/conf/conf.d/ and list output any domain with .conf.suspended
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    4:17 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    well Centmin Mod is in no way meant for commercial hosting as there is no full isolation of user accounts (jailed/chroot) - especially at SSH level and no native pop3/imap configured user support out of the box

    but yes, I have a few ideas for more nginx vhost management stuff like suspending or putting domains into maintenance mode in the future :)
     
  3. handsomechap

    handsomechap New Member

    6
    0
    1
    Dec 30, 2014
    Ratings:
    +0
    Local Time:
    6:17 PM
    That sounds very awesome, I guess it will be a lot of work to take it to being something truly suitable for a shared environment, many things all need to be sorted, is the beta the testing ground for this I guess? I hope you can build in some convenient domain control for it along with the more serious things such as user isolation, etc :]
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    4:17 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+