Virtually hosting images from S3

AWS Virtual Hosting

The CNAME DNS record should alias your domain name to the appropriate virtual hosted–style host name. For example, if your bucket name and domain name are images.johnsmith.net, the CNAME record should alias to images.johnsmith.net.s3.amazonaws.com.

The URL of my S3 hosted images looked like this:
“http://photos-crane.s3.amazonaws.com/wp-content/uploads/2014/09/DSC_0232.jpg”

  1. Go to the AWS Route53 dashboard, and click on Hosted Zones, and select your chosen hosted zone, and click “Go To Record Sets.”
  2. Click “Create Record Set”:
    a. NAME: photos-crane (your bucket name)
    a. TYPE: CNAME
    a. VALUE: photos-crane.stephenfranklin.info.s3.amazonaws.com
    a. Click “CREATE”

Here’s a photo. Click or hover over it to see it’s address:
DSC_0231s

Well that didn’t work… I’ll have to figure out later.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.