http-proxy

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL