Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pathRewriter happening before ProxyTable #50

Closed
cedric25 opened this issue Jan 28, 2016 · 3 comments
Closed

pathRewriter happening before ProxyTable #50

cedric25 opened this issue Jan 28, 2016 · 3 comments
Labels

Comments

@cedric25
Copy link

Hi,

My config are like the following one:

(pathRewrite)
{ '^/api/one' : '', '^/api/two' : '' }

and

(proxyTable)
{ '/one' : 'http://localhost:3001', '/two' : 'http://localhost:3002' }

My use case is that I need the complete path to choose the correct proxy, and only after that it should apply my rules concerning pathRewrite.

If I put the pathRewrite step after the proxyTable one, it works well.

Have I missed something?
What would be a solution?

@cedric25
Copy link
Author

Ok, I should have looked more, looks like it is going to change in v0.10 :)

@chimurai
Copy link
Owner

It's indeed going to change in v0.10.0. (fixed in PR #49)

the beta is available via npm:
npm install http-proxy-middleware@0.10.0-beta

Could you close the issue if it fixes the issue?

@chimurai chimurai added the bug label Jan 28, 2016
@cedric25
Copy link
Author

Thank you for your reactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants