python-tiny-http-server

A simple ad-hoc HTTP server for serving static pages, similar to python -m http.server.

This supports:

  • Basic authentication, for one or more user:password pairs, which can be specified from the command line and/or be read in from a file.
  • Support for HTTPS using a cert and key file
  • Support to run as CGI server, but without basic auth / HTTPS for now
  • Support for optionally uploading files, with or without the ability to override existing files

Installation

pip install -U tiny-http-server

Usage

usage: tiny-http-server [-h] [--cgi] [--bind ADDRESS] [--directory DIRECTORY]
[--port PORT] [--authfile AUTHFILE]
[--auth USERNAME:PASSWORD] [--cert CERT] [--key KEY]

Tiny HTTP server with optional basic authentication and https support.

opti...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help