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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인