Amazon API 网关是否支持带端口号的端点 URL?
Does Amazon API Gateway support endpoint URL with port numbers?
我尝试使用 Amazon API 网关并在端点 URL 上对其进行了测试。如果服务器正在侦听端口 80,它工作正常。
但是,如果我给端点 URL 一个不同的端口,(比如 http://52.xxx.xxx.33:8080)它会报错。如果我直接在浏览器(GET 方法)上访问此 URL,它会提供所需的输出。
这是 AWS API 网关中尚不可用的功能吗?
自提出此问题后,支持的端点端口范围已更改。 Amazon AWS API 网关现在支持端点端口 80
、443
和 [1024, 65535]
。
我与 AWS 合作了 11 年的大部分时间,API 网关自发布之日起,我不知道有什么方法可以将它配置为在 443 以外的任何端口上侦听。如果Bryce 可以引用他的消息来源,这将非常有帮助,因为这种缺乏支持一直是实施 API 网关的一个主要痛点(在我经历过的几乎所有情况下都是交易破坏者)。
来自 AWS API 网关常见问题解答(强调我的):
Q: Can I create HTTPS endpoints?
Yes, all of the APIs created with Amazon API Gateway expose HTTPS
endpoints only. Amazon API Gateway does not support unencrypted (HTTP)
endpoints. By default, Amazon API Gateway assigns an internal domain
to the API that automatically uses the Amazon API Gateway certificate.
When configuring your APIs to run under a custom domain name, you can
provide your own certificate for the domain.
我尝试使用 Amazon API 网关并在端点 URL 上对其进行了测试。如果服务器正在侦听端口 80,它工作正常。
但是,如果我给端点 URL 一个不同的端口,(比如 http://52.xxx.xxx.33:8080)它会报错。如果我直接在浏览器(GET 方法)上访问此 URL,它会提供所需的输出。
这是 AWS API 网关中尚不可用的功能吗?
自提出此问题后,支持的端点端口范围已更改。 Amazon AWS API 网关现在支持端点端口 80
、443
和 [1024, 65535]
。
我与 AWS 合作了 11 年的大部分时间,API 网关自发布之日起,我不知道有什么方法可以将它配置为在 443 以外的任何端口上侦听。如果Bryce 可以引用他的消息来源,这将非常有帮助,因为这种缺乏支持一直是实施 API 网关的一个主要痛点(在我经历过的几乎所有情况下都是交易破坏者)。
来自 AWS API 网关常见问题解答(强调我的):
Q: Can I create HTTPS endpoints?
Yes, all of the APIs created with Amazon API Gateway expose HTTPS endpoints only. Amazon API Gateway does not support unencrypted (HTTP) endpoints. By default, Amazon API Gateway assigns an internal domain to the API that automatically uses the Amazon API Gateway certificate. When configuring your APIs to run under a custom domain name, you can provide your own certificate for the domain.