Sign inSign up

cyd01/tinyweb

By cyd01

•Updated 3 months ago

Tinyweb, a tiny web server in C

Image
0

10K+

cyd01/tinyweb repository overview

⁠Tinyweb

⁠Origins

Tinyweb came from https://github.com/shenfeng/tiny-web-server⁠ repository.

And the current repository is: https://github.com/cyd01/tinyweb⁠

⁠Official Web site

https://www.9bis.net/tinyweb⁠

⁠Contents

Tinyweb is a very light HTTP web server written in C. Here are the original features:

  • Basic MIME mapping
  • Very basic directory listing
  • Low resource usage
  • sendfile(2)
  • Support Accept-Ranges: bytes (for in browser MP4 playing)
  • concurrency by pre-fork

And the new features recently added:

  • Default index file
  • 302 redirect for directory
  • Expect: 100-continue
  • DELETE, GET, HEAD, POST and PUT methods
  • Basic Auth for PUT and DELETE method
  • Very light dynamic script integration (scripts are *.sh)
  • Docker image (https://hub.docker.com/r/cyd01/tinyweb/⁠)

⁠Syntaxe

> ./tinyweb -h
Usage: /home/centos/tinyweb [-h] [[directory] port]
Configuration variables:
- TINYWEB_DIR: home directory [.]
- TINYWEB_PORT: listening port [9999]
- TINYWEB_NBPROCESS: number of concurrent processes [10]
- TINYWEB_CMD: external scripts command []
- TINYWEB_AUTH: Basic authent for PUT and DELETE
- TINYWEB_DEBUG: unable debug mode

Tag summary

Content type

Image

Digest

sha256:660f35bbe…

Size

21.8 MB

Last updated

3 months ago

docker pull cyd01/tinyweb