Skip to content

Simple http server that serves the selected folder content

Notifications You must be signed in to change notification settings

0xC0D3/webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

httpserver

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

Usage:

  • -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.

Example:

httpserver -root="%GOPATH%/src/github.com/0xC0D3/httpserver/test" -port=80

Changelog:

Alpha 0.0.2

TLS mode implemented, now our server can serve content securely.

CLI

  • 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

  • Repo name changed to webserver
  • Branch for development version.

Code

  • Added current version to main.go in comments.

Alpha 0.0.1

First release.

CLI

  • Supports -port=<http port number> parameter (default 8080).
  • Supports -root="<web root directory path>" parameter (Where index.html lives, no default value).

About

Simple http server that serves the selected folder content

Resources

Stars

Watchers

Forks

Packages

No packages published