-1

To DevOps, I have multiple services off an ALB and they are from an on-prem. Can I have multiple redirect rules to a path of "/" to different services off the same ALB? Such as

    Path "/test1" => Redirect to "/"  => Service1
    Path "/test2" => Redirect to "/"  => Service2

Service1 and Service2 are not listening on /test1 nor /test2. Thanks,

user1154422
  • 548
  • 8
  • 22

1 Answers1

4

You can chose a target group based on path conditions but ALBs do not currently handle rewriting paths.

erik258
  • 14,701
  • 2
  • 25
  • 31
  • Thanks, I can redirect to "/" and have that forward to a target group but not both. – user1154422 Mar 23 '23 at 14:56
  • 1
    correct. you will have to do the rewrite on the receiving side or have the backend applications be aware of pathing (I'd recommend the latter) – erik258 Mar 23 '23 at 15:25