我已使用此配置将 GoDaddy 域配置为使用 AWS DNS 服务器:
当我打开内部cloudfront地址xxxxxx.cloudfront.net时,它工作正常。但是当我尝试在 wen 浏览器中打开域时,我得到:
403 ERROR
The request could not be satisfied.
Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: xxxxxxxAo1GT2z_7tnHBclkfaBZUH9qSOGCu_2U6xX8qJDbjw==
你知道我该如何解决这个问题吗?
我需要这些设置:
A) 如果使用 S3 Bucket(如果没有则跳过)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket-name/*"
}
]
}
B) CloudFront
备用域名(CNAME)
example.com
*.example.com
ACM
必须为上述两个域进行设置。
查看器协议策略(重要!)
HTTP and HTTPS
C) 您的域名注册商中的 DNS(我的是 CloudFlare)
CNAME
姓名:
@
价值:
yours.cloudfront.net
注意:CNAME 记录通常不能位于区域顶端。确保您的注册商可以进行 CNAME 扁平化以使其成为可能。否则,请输入 CNAME url 的所有可能变体。