0.0.4 • Published 10 years ago

proxy-by-directory v0.0.4

Weekly downloads
1
License
BSD-3
Repository
github
Last release
10 years ago

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)
0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago