SystemMen - How to remove demodomain.com in CentminMod? When you successfully install CentminMod, you will see that a pre-created domain is demodomain.com.
Remove demodomain.com in CentminMod
When I first used CentminMod, I didn’t know why there was this demo domain mail in my server. I don’t know what it is for.
Is it a part of CentminMod and can I delete it?
If you check the
/home/nginx/domains directory, you will see
demodomain.com directory in it.
[14:27][email@example.com ~]# ls /home/nginx/domains demodomain.com
This is probably a domain created for the purpose of testing the operation of CentminMod. We do not need it and therefore, we will delete it from the server.
To remove this demo domain from the server, you do the following steps in turn.
First, delete the vhost configuration file for this domain.
rm -rf /usr/local/nginx/conf/conf.d/demodomain.com.conf
Next, delete the source web directory of this domain.
rm -rf /home/nginx/domains/demodomain.com
Then, run the following command to verify that Nginx configuration has any errors.
If you encounter an error it looks like the following.
Restarting nginx: nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored nginx: [warn] conflicting server name "site.com" on 0.0.0.0:80, ignored nginx: [warn] conflicting server name "www.site.com" on 0.0.0.0:80, ignored nginx.
Read more in this article. Please check your server again.
Finally, you reload the Nginx configuration in the CentminMod server.
service nginx reload
It is done. With just a few simple commands, you can delete the demo domain that CentminMod created in the server. It is not so important, but you do not want to have garbage in your server, right?If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.
If you appreciate what we share in this blog, you can support us by:
- Stay connected to: Facebook | Twitter | Google Plus | YouTube
- Subscribe email to recieve new posts from us: Sign up now.
- Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
- Become a Supporter - Make a contribution via PayPal.
- Support us by purchasing Ribbon Lite Child theme being using on this website.
We are thankful for your support.