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
- Cross platform
- Self-contained (single executable file)
- Lightweight ( < 2MB for Windows / Linux x86 )
- Language: Rust
For node.js
- CLI
- API
- Not recommended
- Issue of lastest version (see Version 14 has error ERR_HTTP_HEADERS_SENT)
For python
# python -m http.server [port]
python -m http.server
- Python built-in
- Crash if the request is not standard