[英]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.