내용으로 건너뛰기

Error 403 - Route53

0

I've created a static website and host on a S3 bucket, I've created a distribution on Cloud Front and the website was working correctly on this link https://d2acqpg60aifpb.cloudfront.net

When I try to change the url to 'www.blan.ind.br' that I bought on 'registro.br' through Route53 I'm receiving a Error 403 and I don't know what is causing that

I've created 3 records on Route53 a NS, SOA and A types

I put those values bellow in the DNS of registro.br but I'm still facing this problem

ns-669.awsdns-19.net. ns-465.awsdns-58.com. ns-1104.awsdns-10.org. ns-1683.awsdns-18.co.uk.

1개 답변
0

It seems you're encountering a 403 error when trying to access your website using the custom domain name. This issue can occur due to several reasons. Let's go through some potential causes and solutions:

  1. CloudFront Configuration: Make sure you've added your custom domain name (www.blan.ind.br) as an Alternate Domain Name (CNAME) in your CloudFront distribution settings. Without this, CloudFront won't recognize requests coming from your custom domain.

  2. SSL/TLS Certificate: Ensure you have a valid SSL/TLS certificate for your custom domain attached to your CloudFront distribution. This certificate should be issued by AWS Certificate Manager (ACM) in the US East (N. Virginia) region.

  3. Route 53 Configuration: Verify that your A record in Route 53 is correctly set up as an alias record pointing to your CloudFront distribution, not directly to the S3 bucket.

  4. DNS Propagation: After updating your DNS settings at registro.br, it may take some time (up to 48 hours) for the changes to propagate globally. Be patient and keep checking.

  5. S3 Bucket Policy: Ensure your S3 bucket policy allows CloudFront to access the content. The policy should include permissions for the CloudFront Origin Access Identity (OAI) or Origin Access Control (OAC).

  6. CloudFront Cache: Try clearing the CloudFront cache by creating an invalidation for all objects ("/*") in your distribution.

  7. Browser Cache: Clear your browser cache or try accessing the site from an incognito/private browsing window.

If you've confirmed all these settings are correct and you're still experiencing issues, you may need to double-check the exact error message in the CloudFront logs or contact AWS support for further assistance.

Remember to allow some time for DNS changes to propagate fully before concluding that the configuration isn't working.

Sources
Cloudfront cannot access s3 bucket | AWS re:Post
Configured Route53 URL is not working with Cloud Front URL | AWS re:Post
Add an alternate domain name - Amazon CloudFront

답변함 10달 전
전문가
검토됨 10달 전

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

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

관련 콘텐츠