version: Alpha 0.0.2
Simple http server that serves the selected folder content
go get github.com/0xC0D3/httpserver
go build github.com/0xC0D3/httpserver
- -cert string TLS Public Cert file path.
- -pkey string TLS Private Key file path.
- -port int HTTP/HTTPS Server port. (default 8080)
- -root string Content root directory.
- -tls TLS Enable.
When -tls
is set, you must specified -cert
& -pkey
params.
httpserver -root="%GOPATH%/src/github.com/0xC0D3/httpserver/test" -port=80
TLS mode implemented, now our server can serve content securely.
- Supports
-tls
parameter to enable HTTP/TLS mode, next parameters are required then:-cert="<path to the public cert.pem file>"
-pkey="<path to the private key.pem file>"
- Repo name changed to webserver
- Branch for development version.
- Added current version to
main.go
in comments.
First release.
- Supports
-port=<http port number>
parameter (default 8080). - Supports
-root="<web root directory path>"
parameter (Where index.html lives, no default value).