custom logic for node-http-proxy to proxy based on incoming url
Switch branches/tags
Nothing to show
Latest commit 1b092ff Mar 5, 2014 @dominictarr Merge pull request #3 from kanzure/wasnotypo
wasno -> was no
Failed to load latest commit information.
LICENSE license Aug 9, 2013
index.js wasno -> was no Mar 2, 2014
package.json 0.0.3 Aug 9, 2013
readme.markdown [fix] fallback to next middleware if there is no rule. Jul 30, 2011


#proxy by url

this is a simple example of a node-http-middleware that will proxy based on the incoming url. say you want to proxy every request thing under /database to localhost:5984 (couchbd) (and remove the /database prefix)

this is how:

    '/database': { port: 5984, host: 'localhost' },