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

posta 5 anni fa246 visualizzazioni
1 Risposta
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.

con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande