A lightweight http file server writen by golang,DO NOT need any configuration.
gohttpd -dir root_dir -p port
for example:
gohttpd -dir /var/www -p 80
gohttpd -dir /var/www -p 443 -key key.pem -cert cert.pem
gohttpd -cache false
Usage of gohttpd.exe:
-cache
if cache is false, tell broswer dont't cache file (default true)
-cert string
cert.pem file, using by https
-dir string
http root folder (default ".")
-key string
key.pem file, using by https
-p string
address of the http server (default "80")
-gz
enable/disable gzip Content-Type support
-cors
enable/disable cors access