Amazon S3 Website CNAME

While trying to create an S3-hosted static website I was trying to configure my domain to point to the S3 with a CNAME record on my DNS records for the domain.

The Amazon documentation mistakenly tells you to setup your CNAME to point to something like this:

#this is wrong! CNAME # will work # will not work

This configuration will not work if you want directories to serve index.html by default. You may notice that if you type the complete URL you will get an S3 “Access Denied” message.

For your bucket, go to: Properties->Website
You need:

Now you can configure your DNS settings.

# the proper configuration CNAME # will work # will work