Our static website is stored on S3 and distributed via Cloudfront.

The S3 file <S3-bucket>/foo/bar.html can be accessed at www.example.com/foo/bar.html but not at www.example.com/foo/bar (without the .html) which is how we want it to appear on the browser. It fails like this.

  <Message>Access Denied</Message>

How do I tell Cloudfront to pick up foo/bar.html and not foo/bar/index.html like some other answers suggest?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.