Setup wp-config.php for CloudFront.

Setup wp-config.php for CloudFront.

Set up the wp-config.php file to work with CloudFront. CF distributions have HTTPS enabled by default for their default domain, something like yadayadayada.cloudfront.net. We will be configuring our WordPress instance to use HTTP as the origin of our distribution and configure our distribution to terminate SSL/TLS and forward all content requests to your instance using…