routing-proxy

0.1.0 • Public • Published

routing-proxy

route http requests to servers based on url path

stability

currently used as a dev tool. use in production at your own risk.

usage

var http = require('http')
var RoutingProxy = require('routing-proxy')

http.createServer(RoutingProxy()
  .add('http://localhost:8009',
    '/',
  )
  .add('https://localhost:8008',
    '/api*',
    '/socket.io*',
    '/login',
    '/logout'
  )
  .add('http://localhost:8081',
    '*'
  )
  .router())
.listen(8000)

contributors

jden jason@denizac.org

license

MIT. (c) 2013 Agile Diagnosis hello@agilediagnosis.com. See LICENSE.md

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i routing-proxy

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators