Skip to content
custom logic for node-http-proxy to proxy based on incoming url
Find file
Latest commit 1b092ff @dominictarr Merge pull request #3 from kanzure/wasnotypo
wasno -> was no
Failed to load latest commit information.
.gitignore inital
LICENSE license
index.js wasno -> was no
readme.markdown [fix] fallback to next middleware if there is no rule.


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' },
Something went wrong with that request. Please try again.