I'm following tutorial to create an application load balancer and the listener path is as follow:

LB -> path -> server1 or -> path -> server2

The problem:

I can get to server1 via the LB url ok but when I tried to go to server2 i received 404 page.

If i delete & reconfigure the LB & swap the server around then I can get to server2 but will get 404 if i tried to go to server1.

I can get to both server just fine directly.

Thanks for your help




  • Post a screenshot of your ALB Target Group config showing the paths and targets. – MLu Jun 25 '19 at 0:34

I think you're getting 404 because when you access {YourALB}/server1/something the path is passed on to {IntASG}/server1/something instead of {IntASG}/something. If you can check the IntASG access logs you will probably see it there.

IIRC there is a way to remove the routing part of the path before forwarding it on to the backend. Check the ALB docs, it will be described there.


Hope that helps :)

  • I suspected so. Thanks for confirming that. Back to reading docs. – vikiro Jun 25 '19 at 5:41
  • There is not a way to remove the path part of a path based listener rule, this must be done on the application server – ThisGuyCantEven Dec 11 '19 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.