proxy-by-directory

0.0.4 • Public • Published

Proxies requests based on the url directory (e.g. /database, /articles, etc...). It is Similar to proxy-by-url, but works with http-proxy 1.0 api.

var server = require('http').createServer(require('proxy-by-directory')({
    '/articles' : { target : 'http://localhost:5555/' },
    '/' : { target : 'http://sethlakowske.com:7777' }
})).listen(8000)

/proxy-by-directory/

    Package Sidebar

    Install

    npm i proxy-by-directory

    Weekly Downloads

    0

    Version

    0.0.4

    License

    BSD-3

    Last publish

    Collaborators

    • lakowske