CNAME multiple domains to single S3 bucket


We would like to CNAME multiple domains to a single AWS S3 bucket to serve images, to do so I followed URL:

I did the followings:

a. created S3 bucket i.e.
b. stored images in
c. configured CNAME
After performing steps from a - d when we open it shows image content which is absolutely fine.

Now, as mentioned in the stackoverflow [1] (article brief description below)

e. created second bucket
f. redirected it
g. created CNAME CNAME

After performing steps from e - g, when we open it actually redirect to in place of domain name remain same as and serve images from

#[1] You can create a second empty S3 bucket for and configure it to redirect to the domain Then just use the same DNS settings to point both to the Amazon S3 domain for the bucket with all your static HTML files
and redirected.

Could you please advise where we are going wrong…

Thank you,


I’m unsure how this question relates to Cloudflare. Perhaps it would be better to ask about this on the AWS forums?

1 Like


AWS suggest some solution to point single S3 bucket to point multiple CNAME refer url below [1], but for this we need to use AWS CloudFront CDN service… however we are looking for similar solution within Cloudflare CDN + DNS service to host images from single bucket to point multiple CNAME domains.



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