Hello, I outsourced my images to a S3 bucket. Now I would like to prettify the domain and deliver it through Cloudflare.
I have problems with the bucket address. To point the CNAME record to the bucket, the bucket needs a name format like img.mydomain.com
But when I create such a bucket, S3 only shows me an URL path like s3.region.amazonaws.com/img.mydomain.com/image.jpg
instead of a subdomain format like img.mydomain.com.s3.region.amazonaws.com/image.jpg
When I create a bucket without dots (.
) in the name, I get my target bucket format but the CNAME doesn’t work with this.
edit: When I try to point the CNAME to img.mydomain.com.s3.region.amazonaws.com
, I get an error 526 “invalid certificate”
Is there a way to get the desired result? What can I do on the S3 or CF end?
Thank you very much!