Hostname is still S3 instead of cloudfront.net with CloudFront over S3 setup
-
I first configured W3 Total Cache with Origin Pull mode for CloudFront, things seemed to work, but there were some contents(mostly images) that were not able to be cached and still had to be retrieved from my site server every time the page loads.
This is when I tried configuring the Origin Push mode with “Amazon CloudFront over S3”, I used the CloudFront distribution created by the previous setup, and created an S3 origin for the static contents(js, css, jpegs…), which had been uploaded to the S3 bucket using W3 Total Cache.
In CloudFront, I created additional behaviours for wp-content, wp-includes, wp-admin and wp-login.php and set things up using AWS’ official guidance: https://d1.awsstatic.com/whitepapers/wordpress-best-practices-on-aws.pdf?trk=wp_card
While in the CDN configuration in WTC, I configured everything by the book, Key ID, secret key, Bucket, and the cloudfront hostname. And finally, clicking the button ‘Test S3 upload & CloudFront distribution’ also says ‘test passed’.
But still, when I tried to access my website, the static contents still use the dns name of my S3 buckets instead of the dxxxx.cloudfront.net one, I wonder what could be wrong with my configuration. Could anyone please help…?
Thank you so much in advance
- The topic ‘Hostname is still S3 instead of cloudfront.net with CloudFront over S3 setup’ is closed to new replies.