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

asked 5 years ago228 views
1 Answer
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.

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions