1
votes

I'm using AWS ECS to deploy my docker image and created Task definitions. Mapped it to AWS ALB and its Target Groups is healthy. When i try to access my Load Balancer from browser i'm getting Invalid Host header.

I went to Network Interface, took the private IP of the load balancer and tried from the browser. It worked perfectly fine and i'm able to access my application.

I'm facing the issue only while trying to access using Load Balancer.

Can you give me some clue that where i'm missing.

Thanks, Srikanth.

1
the error does not seems belong LB, seem like the erro return by target. - Adiii
Can you inspect the request headers you're sending? In Chrome you can do this using: developers.google.com/web/tools/chrome-devtools/network - Chris Williams

1 Answers

0
votes

Load Balancer private IP would not work on your browser. You can use Public DNS of Load Balancer to access from browser. Did you check the Security Group for the load balancer? that might block traffic from your ECS services.