Skip to main content

Web Server

· One min read

Apache

  • Flexible config
  • C10K problem
  • Popular

Nginx

  • Fast
  • Popular
  • Conditional config not flexible (see Nginx if)
  • Language: C

Caddy

  • Fast
  • Language: Go
  • Automatic apply TLS certification
    • Support ZeroSSL and Let's Encrypt
  • Support config using API

Simple static files web server

For CLI

miniserve

  • Cross platform
  • Self-contained (single executable file)
  • Lightweight ( < 2MB for Windows / Linux x86 )
  • Language: Rust

For node.js

vercel serve

  • CLI
  • API

http-server

For python

# python -m http.server [port]
python -m http.server
  • Python built-in
  • Crash if the request is not standard