/reverseproxy

Reverse HTTP Proxy written in Go

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

reverseproxy

Reverse HTTP Proxy written in Go

Description

I've written this (very limited) reverse HTTP proxy as an excercise and reference for future products.

Update: It appears that stdlib reversproxy allows request and response modification, but not different response based on request.

Usage

make

./reverseproxy -upstream ip.here

Help

Usage of ./reverseproxy:
  -bind string
        Bind addr, e.g. 0.0.0.0:8000 (default "0.0.0.0:8000")
  -upstream string
        HTTP upstream, e.g. 192.168.3.1:81 or just 192.168.3.1

Notes

Standard library (better) implementation exists: https://godoc.org/net/http/httputil#ReverseProxy