AWS ALB: Path based routing not forwarding to target group

3.2k views Asked by At

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?

1

There are 1 answers

0
pkaramol On BEST ANSWER

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;