How To Configure Apache 2.4 to Renew LetsEncrypt running WordPress and https

Published Date Author: , Posted August 21st, 2017 at 1:23:32pm

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

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 allows the renewal process to function via http with no redirect.

Apache Config:

Lastly, make sure your wordpress/.htaccess file contains at least the following to ensure that files are served directly:

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.