You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
fangdingjun 22ae45beb5 update REAMDE.md 8 years ago
.gitignore Initial commit 8 years ago
LICENSE add README and LICENSE 8 years ago
README.md update REAMDE.md 8 years ago
conf.go fix proxy error when http2 8 years ago
conf_test.go add fastcgi, uwsgi, proxy_pass support 8 years ago
config_example.yaml update config example file 8 years ago
dial.go Initial commit 8 years ago
dns.go Initial commit 8 years ago
dns_test.go Initial commit 8 years ago
dns_windows.go Initial commit 8 years ago
fastcgi.go add fastcgi, uwsgi, proxy_pass support 8 years ago
handler.go format error page 8 years ago
proxy.go not touch the path in proxy 8 years ago
routers.go trim the "/" in URLPrefix 8 years ago
server.go fix proxy error when http2 8 years ago
uwsgi.go add fastcgi, uwsgi, proxy_pass support 8 years ago

README.md

gserver

gserver is a golang http/https server

features

  • support HTTP/1.1, HTTP/2.0
  • support serve static files
  • support UWSGI client protocol (python)
  • support fastCGI client protocol (php)
  • support act as resverse proxy
  • support act as forward proxy
  • support multiple locations

usage

go get github.com/fangdingjun/gserver
cp $GOPATH/src/github.com/fangdingjun/gserver/config_example.yaml config.yaml
vim config.yaml
$GOPATH/bin/gserver -c config.yaml