How to remove in CentminMod

by Daniel Pham
Published: Updated:

How to remove in CentminMod? When you successfully install CentminMod, you will see that a pre-created domain is

Remove 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?

remove in centminmod
Remove in CentminMod.

If you check the /home/nginx/domains directory, you will see directory in it.

[14:27][[email protected] ~]# ls /home/nginx/domains

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/

Next, delete the source web directory of this domain.

rm -rf /home/nginx/domains/

Then, run the following command to verify that Nginx configuration has any errors.

nginx -t

If you encounter an error, it looks like the following.

Restarting nginx: nginx: [warn] conflicting server name "localhost" on, ignored
nginx: [warn] conflicting server name "" on, ignored
nginx: [warn] conflicting server name "" on, ignored

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?

(This is an article from my old blog that has been inactive for a long time, I don’t want to throw it away so I will keep it and hope it helps someone).

0 0 votes
Article Rating

You may also like

Notify of
Inline Feedbacks
View all comments

DevOps Lite is a personal blog specializing in technology with main topics about DevOps, DevSecOps, SRE and System Administrator. Articles are shared for free and contributed to the community.



Subscribe my Newsletter for new blog posts. Stay updated from your inbox!

© 2021-2024 – All rights reserved.

Please write sources “” when using articles from this website.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Would love your thoughts, please comment.x

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.