user3288051
user3288051

Reputation: 614

AWS Load Balancer DNS is working but it doesn't pass the health check

I have a the application load balancer set up with a security group. I also have my ec2 instance (windows) set up with another security group. My ec2 instance is configured in vpc.

If I type the load balancer dns (for example http://alb-myrpoject-437610392.us-east-2.elb.amazonaws.com/) on the browser it works but the health check fails. Here is the screenshot of the target group:

enter image description here

enter image description here

I am using the Apache web server.

Any idea why the health check is failing while the load balancer dns works?

Upvotes: 1

Views: 3345

Answers (1)

user3288051
user3288051

Reputation: 614

Thanks for trying to help with your comments. I realized that I didn't give enough info. Okay, I've finally figured it out. On the security group of the ec2 instance, I also added

HTTP    TCP 80  0.0.0.0/0

enter image description here

Now the health check became healthy I can also reach out my web page using my ip of my ec2 instance.

Upvotes: 1

Related Questions