Drop-in replacement for Python SimpleHTTPServer. Provides TLS via Let's Encrypt over HTTP2, and auto generated self-signed certificates.
simple-httpd is aimed to be a simple replacement for using
python -m SimpleHTTPServerto serve local files. Like SimpleHTTPServer, simple-httpd supports HTTP GET and HEAD requests and adheres to the HTTP/1.1 RFC 2616 guidelines.
The HTML output is a mix of the Python module layout and of an Apache directory listing layout.
If you're looking for a full featured or even just more capable web server, take a look at Caddy.
Certificates are cached in
go get github.com/briandowns/simple-httpd
make installor, on BSD
HTTP/1.1 on default port (8000)
HTTP/1.1 on the given port
simple-httpd -p 8181
HTTP/2 with Let's Encrypt on the default port
simple-httpd -l some.valid.domain
The port assignment is for the HTTP server. The TLS port will be 8081 and both will respond to requests.
simple-httpd -p 8080 -t some.valid.domain
Generate a self signed certificate and run the server