Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon S3 Multiple Custom Domain Without Cloudfront

Is it possible to setup Amazon's Simple Storage Solution to use custom domains (storage-01.example.com, storage-02.example.com, storage-03.example.com, ...) without using Cloud Front? I don't really care about having an 'edge' network, but do want the browsers to make parallel requests for assets. Thanks!

like image 644
Kevin Sylvestre Avatar asked Aug 27 '26 01:08

Kevin Sylvestre


1 Answers

No, unless you duplicate your keys into multiple S3 buckets. This is because S3 uses the Host header value as a reference to the bucket.

I guess you could be sneaky and take advantage of the different URL styles. But it's a horrible suggestion and I would never implement it.

  • http://www.mybucketdomain.com/foo.jpg
  • http://www.mybucketdomain.com.s3.amazonaws.com/foo.jpg
  • http://s3.amazonaws.com/www.mybucketdomain.com/foo.jpg
like image 85
Uriah Carpenter Avatar answered Aug 28 '26 15:08

Uriah Carpenter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!