Images not showing on Cloudflare setup
-
I’m also having a problem with the Cloudflare setup, per the instructions that @ianmjones linked in this post.
My S3 bucket name is: cdn.domain.com
My Cloudflare CNAME record is: cdn —>cdn.domain.com.s3-website-us-east-1.amazonaws.com
I’ve input a custom domain(CNAME) in the plugin options: cdn.domain.comNone of the images are showing on both the backend and frontend of my site. I get a 522(timeout error) for every image/file on the site. In Inspector the urls are being rewritten(correctly) as such:
https://cdn.domain.com/wp-content/uploads/yyyy/mm/xxxxxxxx/filename.jpg
The files exist in my S3 bucket and I can view all of the files in the bucket.
I noticed when I click on a file in S3, in the file info, it shows the “Object URL” is:
https://s3.amazonaws.com/cdn.domain.com/wp-content/uploads/yyyy/mm/xxxxxxxx/filename.jpg
Is this the problem? According to the docs mentioned above,
…prefix your region and bucket name to ‘.amazonaws.com’. For example:
cdn.delightfuldownloads.com.s3-eu-west-2.amazonaws.com
…which I have done in the Cloudflare CNAME record, and the plugin seems to be using the correct subdomain since the image urls are being rewritten, but the actual object url to the file is not the same. Does this matter? Why would my images still not be showing? Any thoughts?
- The topic ‘Images not showing on Cloudflare setup’ is closed to new replies.