amazon-web-services - 从本地主机通过 HTTPS 访问 AWS ALB

标签 amazon-web-services ssl localhost amazon-elb

我有一个带有 ECS 和 ALB 的 AWS 设置。 ALB 有 https 监听器,我正在尝试为其配置 SSL 证书并将流量转发到我的 ECS 任务。

我的问题是,在开发环境中,我们使用 localhost 运行应用程序,当尝试将数据发送到 ALB 和 ECS 任务时,流量被拒绝,因为我无法将 localhost 添加为我的域是 SSL。

有什么办法可以解决这个问题吗?

最佳答案

或许您可以在您的hosts 中添加您的域名文件。

127.0.0.1 dev.example.com

这样,当您请求 dev.example.com 时,它将转到您的本地主机。 然后,您的本地应用程序可以与 ALB 对话,您的浏览器将使用正确的 SSL 证书查看它。

关于amazon-web-services - 从本地主机通过 HTTPS 访问 AWS ALB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54020469/

相关文章:

sockets - 普通套接字与 SSL 套接字

ruby-on-rails - rails : PayPal Express Checkout Integration in Localhost

python - 我们可以使用 boto3 Python 在 aws s3 存储桶之间递归复制文件和文件夹吗?

amazon-web-services - 在没有凭据的情况下使用 aws-sdk

amazon-web-services - AWS API Gateway : Use Mock Integration to echo response body

python - BertTokenizer.from_pretrained 错误输出 "Connection error"

azure - 使用 WAFV2 Azure 应用程序网关使用多个基本监听器时无法更新 SSL 证书

amazon-web-services - AWS Import/Export 任务的磁盘验证失败

google-app-engine - 如何打开本地主机 :8080 in Cloud9 IDE?

smtp - 无法连接到 "localhost"端口 25 的邮件服务器