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
Dingjun 8a82af0040 handle panic
when forward the data between the two connections,
if one end close the connection, this will cause panic when
write to closed connection
7 years ago
.gitignore use gofast implement to handle php script 8 years ago
LICENSE add README and LICENSE 8 years ago
README.md update README 8 years ago
conf.go add digest auth support for proxy 8 years ago
conf_test.go add fastcgi, uwsgi, proxy_pass support 8 years ago
config_example.yaml add digest auth support for proxy 8 years ago
digest_passwd_file.go add digest auth support for proxy 8 years ago
handler.go handle panic 7 years ago
http2_proxy.go change log output 8 years ago
passwdfile add digest auth support for proxy 8 years ago
proxy.go fix for reverse proxy for unix socket 8 years ago
routers.go use my fork version of go-http-auth 8 years ago
server.go add virtual host support 8 years ago
uwsgi.go go vet 8 years ago

README.md

gserver

gserver is a golang http/https server

features

  • support UWSGI client protocol (python)
  • support fastCGI client protocol (php)
  • support act as resverse proxy
  • support act as forward proxy
  • support multiple virtual host
  • support SNI (https virtual host)
  • support http/2.0 (only on https)

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