CloudFront giving access denied to subfolders

0

Hello,

I have one CloudFront site that will not display index.html folders off the main site. These are discrete JavaScript map applications and keep all needed resources within their own root folder.

This site points to a S3 bucket with public access and the correct GetObjects policy. The static web site hosting all works fine and all folders and subfolders work without issue or error.

In CloudFront both the cloudfront domain and the cname domain both show the root site without issue. However and subfolder that contains an index.html file will only return the generic access denied xml response. I have tried adding individual origins and behaviors (which I have never had to do for this kind of site) and nothing has worked.

The only way I have these folders working is by adding them to other buckets/sites that are working. All of the bucket settings are identical to those in the non working bucket.

I have tried creating new buckets and cloudfront sites to no avail.

Thanks for any help or suggestions.

質問済み 3年前2107ビュー
1回答
0

I have figured out my issue. When I created the distribution in CloudFront I must not have had static hosting turned on because the origin to the bucket did not include the s3-website-us-region in the name. I have added the correct origin and issue is solved.

回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ