Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In an AWS application load balancer, is there a way to change the path during routing?

E.g. I have two backend services, A and B, and I want to forward everything with path

/A* to A and /B* to B - but I want to strip out the /A/ and /B/ before it hits them. So for example /A/api reaches A as /api. Is this possible?

Edit: I specifically want to forward the traffic, not redirect.

like image 273
Andrew Avatar asked Jan 20 '26 00:01

Andrew


1 Answers

I don't think it's possible, what worked for me is simply configuring my backends so that locally I can start them without the context, and then when deployed, a context is added.

like image 109
JFCorleone Avatar answered Jan 21 '26 15:01

JFCorleone



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!