Alex Rivera | Logout

Amazon S3 Url rewrite

Asked 2009-02-20T19:24:07.137
13

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.

Edit
Report

1 Answer

4

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.

answered 2010-11-01T12:39:24.127

Your Answer