DigitalOcean Web Server Configuration and Hosting Multiple Websites

How to Remove a Domain from Certbot and NGINX

You will learn how to remove a domain from Nginx and Cerbot (SSL) configuration files.



Contents:

Step 1: Specify the domain name

mydomain=apps.example.com

Step 2: Remove an nginx Config from Sites-Enabled

# Remove the domain config files
cd /etc/nginx
sudo rm sites-available/$mydomain
sudo rm sites-enabled/$mydomain

# Check whether nginx has valid configurations and then reload the service
sudo nginx -t  
sudo service nginx restart 

Step 3: Remove certificate for a domain

# Show the list of certificates
certbot certificates

# Remove certificates for a given domain
sudo certbot delete --cert-name $mydomain



Version: Français

How to Create a Subdomain on DigitalOcean (Prev Lesson)
(Next Lesson) How to Create a Website Directory and Set Up Proper Permissions
Back to DigitalOcean Web Server Configuration and Hosting Multiple Websites

No Comments

Give a comment

Want to post an issue with R? If yes, please make sure you have read this: How to Include Reproducible R Script Examples in Datanovia Comments