Search code examples
amazon-web-servicesamazon-elbaws-albaws-application-load-balancer

AWS ALB: Path based routing not forwarding to target group


I have created an ALB and a target group.

The ALB has a listener on 80. This forwards it to my target group which in turn sends it to a registered instance on port 9000.

I am trying to add a path based rule as follows:

enter image description here

However, when I am hitting <alb-dns-name>, I do get redirected to my registered instance.

When I try <alb-dns-name>/portainer I get 404.

Am I missing sth?


Solution

  • Path based routing also forwards the path to the respective request header;

    So my app received /portainer in the request arriving to it and could not find/handle.

    Switching to host based routing and the appropriate dns entries;