Amazon S3 Url rewrite [closed]

2020-05-16 05:49发布

How can I change the Amazon S3 url from http://bucket.amazons3.com/imagepath.jpg to http://image.mydomain.com/imagepath.jpg

EDIT: Basically the whole reason for this is to hide the amazon s3 url from my users.

I was thinking about a HttpModule that would redirect the request from image.mydomain.com to bucket.amazons3.com. But that would require all requests to be handled by my servers first then forwarded.

7条回答
姐就是有狂的资本
2楼-- · 2020-05-16 06:26

Bryan's answer is correct and Ramesh and Vincent's have an error. Setting the CNAME to s3.amazonaws.com resulted in unnecessary redirects for me, as warned in the AWS Virtual Hosting of Buckets guide here.

查看更多
登录 后发表回答