I host a static website on Amazon S3 using a static web hosting option, so S3 will display the folder without pointing me directly to my index.html file.
For example, here is a direct link to a page in my S3 bucket: http://new.rdegges.com.s3-website-us-east-1.amazonaws.com/category/2009/ As you can see when you visit this URL Amazon S3 automatically displays the index.html file inside this directory, allowing me to have clean URLs.
All this works fine on S3. The problem I am facing is that Amazon Cloudfront handles this behavior correctly. When I create a Cloudfront distribution with my S3 slave fan listed as the source and tell it to use "index.html" as the root, the index.html behavior that S3 just stops working together.
For example, here is my same URL as indicated above in Cloudfront: http://d1mj00c6pby3gc.cloudfront.net/category/2009/
Unfortunately, the above URL does NOT work, but if I manually specify the index file, it is, for example: http://d1mj00c6pby3gc.cloudfront.net/category/2009/index.html
My question is: how do I need to configure Cloudfront so that it matches my S3 byte settings for my site?
amazon-s3 amazon-cloudfront
rdegges Mar 09 '13 at 9:20 2013-03-09 09:20
source share