Skip to content

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

License

Notifications You must be signed in to change notification settings

peterbourgon/http-proxy

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published