hp
github.com/peterbourgon/http-proxy
go get github.com/peterbourgon/http-proxy
hp

github.com/peterbourgon/http-proxy

An HTTP server with a simple config format that proxies to localhost

by Peter Bourgon

v1.0.0 (see all)License:Apache-2.0
go get github.com/peterbourgon/http-proxy
Readme

http-proxy

An HTTP server that proxies all requests to other HTTP servers on localhost, or file servers rooted in a path on disk, based on the incoming request's Host header.

Installation

go get github.com/peterbourgon/http-proxy

Usage

USAGE
  http-proxy [flags]

FLAGS
  -cert server.crt    TLS certificate
  -config proxy.conf  config file
  -example false      print example config file to stdout and exit
  -http :80           serve HTTP on this address (optional)
  -key server.key     TLS key
  -tls ...            serve TLS on this address (optional)

proxy.conf

example.com, www.example.com: 8081
subdomain.example.com: 8082
www.website.online: /var/www/website.online

GitHub Stars

11

LAST COMMIT

2yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v1.0.1-0.20200408114102-6be85b6e7d18
1yr ago
v1.0.0
1yr ago
No alternatives found
No tutorials found
Add a tutorial