Reputation: 67
I am using AWS S3 bucket for storing and displaying the user upload image files.
My website name is example.net
and as I want to use cloudflare CDN and show the image url path as images.example.net
(as I want to mask the S3 url).
I created a S3 bucket with name images.example.net
and mapped the CNAME images.example.net.s3.us-east-1.amazonaws.com
as images.
So I am able to access the images using url images.example.net/myPic.jpg
Recently I got a new domain example.com
(only the extension is different), and now I want to use the same S3 bucket example.net to store the files and the url needs to shown as images.example.com/myPic.jpg
If I create a new S3 bucket images.example.com
, then I can do it, but I want to use the existing one only.
Is there any method to configure in cloudflare for that ? Can I do it without creating a new bucket named images.example.com ?
Upvotes: 1
Views: 706
Reputation: 35146
If you're using virtual hosting then you're limited to a single domain per bucket by using the domain as the bucket name.
The only options available to you are:
Obviously neither are ideal for your scenario, however these are the options available at this time.
Upvotes: 2