Skip to content

A lightweight http file server writen by golang, DO NOT need any configuration.

Notifications You must be signed in to change notification settings

jijinggang/gohttpd

Repository files navigation

gohttpd

A lightweight http file server writen by golang,DO NOT need any configuration.

Simple Usage

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

Command Line

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

Download

https://github.com/jijinggang/gohttpd/releases/

About

A lightweight http file server writen by golang, DO NOT need any configuration.

Resources

Stars

Watchers

Forks

Packages

No packages published