0

I would like to host multiple S3 Amazon buckets under one site in next way: Access to bucket1 - http://example.com/bucket1(bucket2...) and so on. What now Amazon allows is access with links like http://s3-ap-northeast-1.amazonaws.com/bucket1 , but this is not allowed in my case (production server). Note that site DNS is hosted also at Amazon Route53.

  • You'd have to proxy it. Are you sure this is useful enough to justify the work, additional bandwidth usage, and extra latency it'll involve? – ceejayoz Jun 7 '16 at 14:52
  • Would you be comfortable with a pattern like: http://bucket1.example.com where bucket1 is now a subdomain? – Jedi Jun 7 '16 at 15:14
0

One solution that I can think of is to route to your buckets using subdomains: http://bucket1.example.com , http://bucket2.example.com

All you would need to do is to create the relevant subdomain in your Route 53 configuration, and then alias it by creating a CNAME record. So, bucketn.example.com will have a CNAME record with bucketn.s3-ap-northeast-1.amazonaws.com.

This reference from AWS may help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.