CloudFlare + S3 Bucket with different name bucket and domain

Hi

i have bucket s3 with name asset-images

its posible use cname domain in Cloudflare with domain static.example.com and diferrent name bucket

we don’t want to change our production bucket s3 name

i try before error

Error>
<Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist</Message>
<BucketName>static.example.com</BucketName>

bucket s3 name = asset-images
domain cname cloudlfare = static.example.com

Due to the way CNAMEs work, no. The HOST header (eg static.example.com) is directly proxied to S3, but S3 uses the HOST header to determine which bucket to access. Only enterprise plan members have an “override HOST header” page rule option which would make this possible since said page rule would be ripe for abuse on non-contract plans.

1 Like

so sad

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.