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
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.
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/
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With