简体   繁体   English

将 Elastic Beanstalk 健康检查程序的协议更改为 HTTPS 而不是普通的 HTTP(应用程序负载均衡器)

[英]Change protocol of Elastic Beanstalk health checker to HTTPS instead of plain HTTP (Application load balancer)

I just recently added this HTTPS redirect config file to my EB project, and now all health checks are failing because all the responses are 3XX and not 2XX.我最近刚刚将这个HTTPS 重定向配置文件添加到我的 EB 项目中,现在所有健康检查都失败了,因为所有响应都是 3XX 而不是 2XX。

The 3xx is caused by a redirect from http -> https that the config file I added enforces. 3xx 是由 http -> https 的重定向引起的,我添加的配置文件强制执行。

I couldn't find any solutions to that in the docs.我在文档中找不到任何解决方案。 I'm open to alternatives, maybe making the health-check pass if it the endpoint returns 3xx?我对替代方案持开放态度,如果端点返回 3xx,可能会通过运行状况检查?

Thanks!谢谢!

Turns out, I have configured Django to also do HTTPS redirects.事实证明,我已将 Django 配置为也执行 HTTPS 重定向。 Now that I turned this off and solely rely on the load balancer for this, the error is gone.现在我关闭它并完全依赖负载均衡器,错误消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 负载均衡器无法在 Elastic Beanstalk 中从 HTTP 重定向到 HTTPS - Load Balancer unable to redirect from HTTP to HTTPS in Elastic Beanstalk Elastic Beans + Django。使用负载均衡器将 HTTP 切换为 HTTPS - Elastic Beans + Django. Switch HTTP to HTTPS using Load Balancer 使用 Application Load Balancer 将 http 重定向到 https - Redirect http to https using Application Load Balancer 将 http 重定向到 https AWS 应用程序负载均衡器 - Redirect http to https AWS Application Load Balancer 将 EC2 弹性负载均衡器从 HTTP 重定向到 HTTPS - Redirecting EC2 Elastic Load Balancer from HTTP to HTTPS 如何在没有负载均衡器的情况下为 HTTPS 在 Elastic Beanstalk 上配置 Springboot 后端服务器 - How to configure Springboot backend server on Elastic Beanstalk for HTTPS without load balancer Elastic Beanstalk 负载均衡器登录 Terraform - Elastic Beanstalk Load Balancer Logging in Terraform 413 请求实体太大 - Elastic Beanstalk + 负载均衡器 + Node.js 应用程序 - 413 Request Entity Too Large - Elastic Beanstalk + Load Balancer + Node.js application Elastic Beanstalk HTTP 至 HTTPS 重定向至 Terraform - Elastic Beanstalk HTTP to HTTPS Redirect In Terraform Terraform 将负载均衡器侦听器附加到 Elastic Beanstalk 负载均衡器。 不是有效的负载均衡器 ARN - Terraform attaching a load balancer listener to an Elastic Beanstalk load balancer. Not a valid load balancer ARN
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM