UNPKG

http-proxy

Version:

A full-featured http reverse proxy for node.js

29 lines (28 loc) 1.22 kB
{ "name": "proxy-by-url", "version": "0.0.2", "description": "custom logic for node-http-proxy to proxy basedon incoming url", "homepage": "http://github.com/dominictarr/proxy-by-url", "repository": { "type": "git", "url": "https://github.com/dominictarr/proxy-by-url.git" }, "dependencies": {}, "devDependencies": {}, "author": { "name": "Dominic Tarr", "email": "dominic.tarr@gmail.com", "url": "http://bit.ly/dominictarr" }, "scripts": { "test": "meta-test test/*.js" }, "readme": "#proxy by url\n\nthis is a simple example of a node-http-middleware that will proxy based on the incoming url.\nsay you want to proxy every request thing under /database to localhost:5984 (couchbd)\n(and remove the /database prefix)\n\nthis is how:\n\n require('http-proxy').createServer(\n require('proxy-by-url')({\n '/database': { port: 5984, host: 'localhost' },\n })\n ).listen(8000)\n", "readmeFilename": "readme.markdown", "_id": "proxy-by-url@0.0.2", "dist": { "shasum": "976433200dfcf5772f239c9689e003331469dc44" }, "_from": "proxy-by-url@>= 0.0.1", "_resolved": "https://registry.npmjs.org/proxy-by-url/-/proxy-by-url-0.0.2.tgz" }