Join the community today
Become a Member

demodomain.com

Discussion in 'Feature Requests & Suggestions' started by raciasolvo, Oct 10, 2016.

  1. raciasolvo

    raciasolvo Member

    98
    11
    8
    Oct 7, 2016
    Ratings:
    +28
    Local Time:
    3:05 PM
    Nginx 1.11.6
    MariaDB 10.0.27
    Please, create uninstall_demodomain.com.sh. I think that this domain is created for example. Or I'm wrong?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    10:05 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah just leave it there it does nothing but serve as a demo but it's not publicly accessible. Incorrectly deleting it, will break nginx startup/restarts though.
     
  3. raciasolvo

    raciasolvo Member

    98
    11
    8
    Oct 7, 2016
    Ratings:
    +28
    Local Time:
    3:05 PM
    Nginx 1.11.6
    MariaDB 10.0.27
    Yes, I am afraid that nginx will not start and that this domain is used for technological purposes. But I do not like this domain. :) What do you think about this script?
    Code (Text):
    rm -rf /usr/local/nginx/conf/conf.d/demodomain.com.conf
    rm -rf /home/nginx/domains/demodomain.com
    rm -rf /usr/local/nginx/conf/autoprotect/demodomain.com
    service nginx restart
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    10:05 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try and see should be fine
     
  5. raciasolvo

    raciasolvo Member

    98
    11
    8
    Oct 7, 2016
    Ratings:
    +28
    Local Time:
    3:05 PM
    Nginx 1.11.6
    MariaDB 10.0.27
    Code (Text):
    Restarting nginx (via systemctl):                          [  OK  ]

    Adding to /root/tools :)
    Thank you!
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    10:05 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    the vhost won't come back so no need to re-run those commands once deleted
     
  7. raciasolvo

    raciasolvo Member

    98
    11
    8
    Oct 7, 2016
    Ratings:
    +28
    Local Time:
    3:05 PM
    Nginx 1.11.6
    MariaDB 10.0.27
    You're right! :D
    But for a new vds this script more useful.:)
     
  8. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:05 PM
    How about during first install centminmod can ask what the default domain should be? It will save a step in the future and eliminate useless demodomain.com folder....
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,535
    12,219
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,788
    Local Time:
    10:05 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah sounds good.. can probably get folks pre-populating persistent config file before install (for curl unattended centmin mod installs) to generate vhost via /usr/bin/nv method post install
     
  10. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    10:05 PM
    Yes! My dream!!