Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 716 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 716 Bytes

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