【发布时间】:2020-11-07 23:31:30
【问题描述】:
我有来源http://app.mydomain.com/v2/check(没有https)
我已使用 ssl 证书 *.mydomain.com 配置了我的云端
在 Route53 中,我创建了一条别名 app2.mydomain.com 指向 Cloudfront xyz.cloudfront.net 的记录
现在我如何设置行为,以便我调用 (POST) https://app2.mydomain.com/v2/check 它调用 http://app.mydomain.com:8081/v2/check。
卷曲命令 工作
curl --location --request POST 'http://app.mydomain.com/v2/check' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'disabledRules=WHITESPACE_RULE' \
--data-urlencode 'text="The quick read focks jumped over the lazy broon dogg."' \
--data-urlencode 'language=en-US'
无法正常工作,出现 http 403 错误
curl --location --request POST 'https://app2.mydomain.com/v2/check' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'disabledRules=WHITESPACE_RULE' \
--data-urlencode 'text="The quick read focks jumped over the lazy broon dogg."' \
--data-urlencode 'language=en-US'
【问题讨论】:
标签: amazon-web-services amazon-cloudfront