Skip to content

Instantly share code, notes, and snippets.

@joelleibow
Created March 19, 2013 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelleibow/5192548 to your computer and use it in GitHub Desktop.
Save joelleibow/5192548 to your computer and use it in GitHub Desktop.
HTTP-Proxy Post Path Issue
var httpProxy = require('http-proxy');
var proxyOptions = {
pathnameOnly: true,
router: {
'/accounts/login': 'localhost:8001',
'': 'localhost:8000'
}
};
httpProxy.createServer(
require('./lib/proxy_logger')(),
proxyOptions
).listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment