mark
mark

Reputation: 2063

S3 Static Website directory index redirect with CloudFront

With an S3 static site, I am able to hit /directory and it will serve up the index.html file inside the directory. Once I add the S3 bucket as a CloudFront origin, I instead get an Access Denied message.

How can I replicate this S3 functionality in CloudFront?

Upvotes: 0

Views: 323

Answers (1)

mark
mark

Reputation: 2063

The fix was to setup S3 static site hosting and use CloudFront to point to it as a remote origin website instead of an S3 bucket.

Upvotes: 2

Related Questions