Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/junosuarez/routing-proxy

npm module: proxy http requests to various servers based on request url
https://github.com/junosuarez/routing-proxy

Last synced: 8 days ago
JSON representation

npm module: proxy http requests to various servers based on request url

Awesome Lists containing this project

README

        

# 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

## license

MIT. (c) 2013 Agile Diagnosis . See LICENSE.md