Target group says EC2 instance unhealthy but curl works

0

My ALB says my EC2 instance is unhealthy, it apparently isn't getting an OK back from the HTTPS check on /public/misc/health-check

If I SSH into my machine I can curl localhost:443/public/misc/health-check and this works. The same works on the public IP from the Elastic IP attached to this EC2 instance.

My security group has port 80 and 443 inbound allowed from all sources.

I don't understand why the health check is failing and I'm not sure where I can see more information as to why it is failing.

Edited by: Christiaan on Apr 24, 2019 8:11 AM

Edited by: Christiaan on Apr 25, 2019 6:33 AM

已提问 5 年前246 查看次数
1 回答
0

I managed to fix it by setting the health check to HTTP instead of HTTPS because internally from the load balancer to the instance there is no HTTPS anymore.

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则