Need help with simple-httpd?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

briandowns
219 Stars 18 Forks Apache License 2.0 85 Commits 1 Opened issues

Description

Drop-in replacement for Python SimpleHTTPServer. Provides TLS via Let's Encrypt over HTTP2, and auto generated self-signed certificates.

Services available

!
?

Need anything else?

Contributors list

# 23,430
Rails
webfram...
Kuberne...
k8s
46 commits
# 324,025
webrtc
video-c...
Sass
HTML
8 commits
# 441,371
Shell
letsenc...
golang
garmin
4 commits
# 3,083
Go
golang
Shell
Redis
1 commit
# 248,375
Go
hft
hft-tra...
Shell
1 commit
# 73,117
CSS
Express
sh
Bash
1 commit
# 310,065
Go
gitlab-...
golang
letsenc...
1 commit
# 3,723
Go
Shell
golang
healthc...
1 commit
# 322,418
Visual ...
D
golang
Shell
1 commit

simple-httpd

Build Status

simple-httpd is aimed to be a simple replacement for using

python -m SimpleHTTPServer
to 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.

Features

  • HTTP2 with Let's Encrypt integration for automatic TLS, if enabled.
  • Automatic self signed certificate generation and use, if enabled.
  • Multiple language support: English, Italian, Spanish, Irish. ISO 639-1 are given on the CLI.

Certificates are cached in

${HOME}/.autocert
for reuse.

Installation

go get github.com/briandowns/simple-httpd

or

make install
or, on BSD
gmake install

Examples

HTTP/1.1 on default port (8000)

simple-httpd

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

simple-httpd -g

Run server in Spanish

simple-httpd -l es

Contributions

  • File Issue with details of the problem, feature request, etc.
  • Submit a pull request and include details of what problem or feature the code is solving or implementing.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.