-
Notifications
You must be signed in to change notification settings - Fork 84
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
yakbak('http://host.com/subdir') does not work #16
Comments
Proxying paths is not as trivial as proxying hosts. If you need path proxying you could do this with proxy-middleware e.g. const app = express()
app.use('/subdir', yakbak('http://host.com', {dirname}))
app.use('/', proxyMiddleware('http://localhost:3000/subdir'))
app.listen(3000) |
Yeah, yakbak isn't meant to do any sort of routing, it's a simple proxy from one host to another. Are you using yakbak with express by chance? Internally we use |
I'm using express. But I actually want the req.url rewriting since I'm On Sat, May 14, 2016 at 10:15 AM, Jeremy Ruppel [email protected]
|
Hm, I'm not sure I'm quite understanding the setup here. Could you gist an example when you have a chance? |
In this case:
It seems like yakbak drops the '/subdir' part when it proxies requests and only sends 'http://host.com/'.
The text was updated successfully, but these errors were encountered: