mookjp / multi-proxy

A simple proxy to send requests to multiple destinations and reduces responses to a single response
9 stars 3 forks source link

URL rewrite #18

Open amrnablus opened 6 years ago

amrnablus commented 6 years ago

Hello, Is there a way to rewrite the URL before sending it to any of the proxied servers?

mookjp commented 6 years ago

Do you mean to rewrite the referrer in HTTP header? Currently, it is not supported.

amrnablus commented 6 years ago

Not quite, what i mean is that let's say you want to proxy the request /server1/controller1 to both /server2/controller1 and server3/otherController the first case works just fine but the server3 case doesn't quite work, what's i'm doing right now is that i have a proxy at localhost that rewrites to otherController and then sends the request to server3