api网关区域自定义域不起作用 [英] api gateway regional custom domain is not working
问题描述
我正在测试使用AWS的Lambda和API网关制造移动游戏服务器.
在API网关,我尝试使用两种类型的端点(区域a.domain.com
和边缘优化的b.domain.com
)创建自定义域.边缘优化的端点很好,可以正常工作.
I'm testing to make mobile game server with AWS's Lambda and API gateway.
At the API gateway, I try to make custom domain using 2 types endpoint, regional a.domain.com
and edge optimized b.domain.com
. The edge optimized endpoint is fine, it works.
但是区域端点不起作用.它返回ERR_CONNECTION_REFUSED. 区域终结点URL无法使用AWS控制台提交到记录集.
But the regional endpoint is not working. it returns ERR_CONNECTION_REFUSED. the regional endpoint url can't submit to record set using aws console.
所以我正在使用aws-cli来编辑route53中的记录集.
So I'm using aws-cli for editing record set in the route53.
推荐答案
我遇到了同样的问题.
似乎将API Gateway与区域自定义域一起使用时,仅支持HTTPS,并且API Gateway不会从HTTP重定向到HTTPS.
It appears that when using API Gateway with regional custom domains only HTTPS is supported and API Gateway does not redirect from HTTP to HTTPS.
所以只需使用https://a.domain.com
这篇关于api网关区域自定义域不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!