You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GoDaddy域名转发至AWS Cloudfront站点返回403错误如何解决

Cloudfront 403错误修复及白标域名配置步骤

你遇到的403错误是Cloudfront未识别请求域名hello.example.com导致的,按照以下步骤调整配置即可实现地址栏保留hello.example.com、加载data.value.com内容的需求:

  • 新增Cloudfront备用域名配置
    进入AWS Cloudfront控制台,找到对应data.value.com的分发实例,在「常规」标签页的「备用域名(CNAME)」配置项中添加hello.example.com。Cloudfront默认只响应自身配置列表内的域名请求,未添加的域名访问会直接返回403。
  • 配置适配的SSL证书
    前往AWS Certificate Manager(ACM),在*us-east-1(弗吉尼亚北部)*区域签发覆盖hello.example.com的公有SSL证书,完成域名所有权验证后,回到Cloudfront分发配置页,将证书替换为刚签发的包含hello.example.com的证书。只有us-east-1区域的ACM证书可用于Cloudfront服务,不符合区域要求的证书会导致配置失败。
  • 调整源站请求Host头规则
    打开Cloudfront分发的「源站」标签页,编辑对应源站的请求策略:如果你的上游源站只识别data.value.com的Host头,就将转发给源站的Host头设置为源站域名;如果源站允许hello.example.com的Host头,也可以选择转发原始请求的Host头,避免源站返回权限错误。
  • 确认GoDaddy解析配置有效性
    确认你在GoDaddy添加的解析记录为CNAME类型,记录值填写的是data.value.com对应的Cloudfront分发域名(如果data.value.com本身已经是解析到Cloudfront分发域名的CNAME记录,现有配置无需改动),可将TTL临时调整为5分钟方便后续验证。
  • 等待配置生效验证
    Cloudfront配置修改后需要5~10分钟完成全球节点部署,部署完成后清空浏览器缓存再访问hello.example.com即可验证效果。

你收到的Cloudfront 403错误原文如下:

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)

内容的提问来源于stack exchange,提问作者Anamik Adhikary

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.13 06:09:03