User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
letsencrypt [2017/02/28 12:49]
ian move monthly script to weekly to avoid renewal notices
letsencrypt [2020/02/13 22:55] (current)
Line 37: Line 37:
 <code> <code>
-/usr/local/sbin/certbot-auto certonly --webroot --webroot-path /home/ian/public_html/braindump/dokuwiki/ -d -d -d certonly --webroot --webroot-path /var/www -d -d -d
 </code> </code>
Line 51: Line 51:
 4. <code> 4. <code>
-echo '/usr/local/sbin/certbot-auto renew --post-hook "systemctl reload apache2"' >> /etc/cron.weekly/letsencrypt-renew+echo '/usr/local/sbin/certbot-auto renew --deploy-hook "systemctl reload apache2"' >> /etc/cron.weekly/letsencrypt-renew
 </code> </code>
Line 69: Line 69:
         ServerAlias         ServerAlias
 +        DocumentRoot /var/www/
         RewriteEngine On         RewriteEngine On
-        RewriteRule /(.*) https://%{HTTP_HOST}/$1 [R]+        RewriteCond %{REQUEST_URI} !/.well-known/.* 
 +        RewriteRule (.*) https://%{HTTP_HOST}$1 [R]
 </VirtualHost> </VirtualHost>
Line 92: Line 94:
 logger "Start: $0" logger "Start: $0"
-/usr/local/sbin/certbot-auto renew --post-hook "systemctl reload apache2"+/usr/local/sbin/certbot-auto renew --deploy-hook "systemctl reload apache2"
 logger "End: $0" logger "End: $0"
 </code> </code>
letsencrypt.1488304152.txt.gz · Last modified: 2020/02/13 22:55 (external edit)

free spam filter