Simple reverse proxy impl in Go.
$ go get github.com/chintana/go-reverseproxy
Create a config file with proxy rules. go-reverseproxy -h
for more info.
Example config,
{
"ProxyRules": [
{
"RequestPathRegex": "^/services/SimpleStockQuoteService",
"ForwardTo": "http://localhost:9000"
},
{
"RequestPathRegex": "^/services/FastStockQuoteService",
"ForwardTo": "http://localhost:9001"
}
]
}
Then run with $ go-reverseproxy -conf config.json