Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom url for images hosted on Amazon S3 [closed]

Tags:

amazon-s3

I am currently using Amazon S3 to host and serve my website's images. For example, the link looks like this:

http://s3.amazonaws.com/MyBucket/images/tn_1014.jpg

What I would like to do is have the path look something more like our original site's path, such as:

http://www.mySiteName.com/images/tn_1014.jpg

How / Where about would I go to set this up. I imagine it may be some sort of mapping somewhere, I'm just not sure where. I run a VPS box with IIS and Railo. Is it something I set up on the webserver or somewhere in the DNS settings?

Thanks

like image 969
Paolo Broccardo Avatar asked Dec 03 '12 14:12

Paolo Broccardo


People also ask

Why is S3 object URL Access Denied?

The URL to the Amazon S3 object doesn't include your user credentials, so the request to the object is anonymous. Amazon S3 returns an Access Denied error for anonymous requests to objects that aren't public.

What URL format do Amazon S3 buckets end in?

An S3 bucket can be accessed through its URL. The URL format of a bucket is either of two options: http://s3.amazonaws.com/[bucket_name]/ http://[bucket_name].s3.amazonaws.com/

How do I mask my Amazon S3 URL?

There are two parts to masking your S3 url, the first is creating and naming a bucket in S3 to match the subdomain, the second is creating the subdomain and pointing it to the S3 bucket url.


1 Answers

Follow the tutorial at http://carltonbale.com/how-to-alias-a-domain-name-or-sub-domain-to-amazon-s3/ to alias your domain to your S3 bucket.

like image 63
Stanley Avatar answered Sep 28 '22 02:09

Stanley