Skip to content

http reverse proxy with http api to control the virtual hosts to forward

Notifications You must be signed in to change notification settings

h2object/h2forward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
刘建平
Aug 11, 2015
7f56dc1 · Aug 11, 2015

History

6 Commits
Jul 19, 2015
Aug 11, 2015
Jul 19, 2015
Jul 20, 2015
Jul 18, 2015
Jul 20, 2015
Jul 18, 2015

Repository files navigation

h2forward

http reverse proxy with http api to control the virtual hosts to forward

Quick Start

Install

$: go get github.com/h2object/h2forward

Start

$: h2forward -w=/path/to/work -l="0.0.0.0:80" -a="127.0.0.1:9000" -d start

Stop

$: h2forward -w=/path/to/work stop

Virtual Host

  • Set Virtual Host
$: h2forward -a="127.0.0.1:9000" virtualhost set "www.example.com" "http://127.0.0.1:8080"
  • Del Virtual Host
$: h2forward -a="127.0.0.1:9000" virtualhost del "www.example1.com" "www.example2.com" 
  • Get Virtual Host

Get All*

$: h2forward -a="127.0.0.1:9000" virtualhost get 

Get One*

$: h2forward -a="127.0.0.1:9000" virtualhost get "www.example.com"

Enjoy It!

About

http reverse proxy with http api to control the virtual hosts to forward

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages