How To Renew A Single Domain With certbot

Test Renewal of a Single Domain
1 |
certbot renew --cert-name yourdomain.com --dry-run |
Execute Renewal of a Single Domain
1 |
certbot renew --cert-name yourdomain.com |
![]() |
Test Renewal of a Single Domain
1 |
certbot renew --cert-name yourdomain.com --dry-run |
Execute Renewal of a Single Domain
1 |
certbot renew --cert-name yourdomain.com |
1 2 3 4 |
sudo chgrp grafana /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem sudo chmod g+r /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem sudo vi /etc/grafana/grafana.ini sudo service grafana-server restart |
1 2 3 4 5 6 7 8 9 10 |
[server] # Protocol (http, https, socket) ;protocol = http protocol = https # https certs & key file ;cert_file = ;cert_key = cert_file = /etc/letsencrypt/archive/www.yourdomain.com/fullchain1.pem cert_key = /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem |
This post does not cover configuring letsencrypt or ssl/https. First, make sure your LetsEncrypt configuration points to the actual WordPress document root directory cat /etc/letsencrypt/renewal/www.yourdomain.com.conf
1 2 3 4 |
... [[webroot_map]] yourdomain.com = /volumes/data/www/yourdomain.com/prod/wordpress www.yourdomain.com = /volumes/data/www/yourdomain.com/prod/wordpress |
Second, use the new macro language feature in Apache 2.4 to configure an https redirect macro which does NOT redirect to https for anything in the .well-known subdirectory. This […]