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

preguntada hace 5 años246 visualizaciones
1 Respuesta
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.

respondido hace 5 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas