Show HN: Bzot – A small C static web server with built-in full-text search githu...
Show HN @show
Show HN: Bzot – A small C static web server with built-in full-text search github.com · 2 points · 0 comments · HN thread
TL;DR Bzot is a small hardened static web server in C that can run as a single binary, with optional OpenSSL TLS, virtual hosts, Netlify-style _redirects, and an in-memory BM25-style full-text search endpoint. The README describes features, build steps, configuration, security defaults and design limits. The Show HN post has 2 points and no comments yet.
- Single C binary; zero external dependencies when built with TLS=0, otherwise links only OpenSSL for TLS 1.2+ and optional mutual TLS.
- Built-in full-text search (-S) builds an in-memory inverted index over .html files at startup, with field-boosted BM25 ranking, prefix matching, Latin-1 accent folding and JSON results at /search?q=.
- Netlify-style _redirects support (301/302/307/308 and 410 Gone) validated at startup and reloadable via SIGHUP; virtual hosts are configured via an INI file bzot.conf.
- Privacy defaults: anonymized /24 IPv4 and /48 IPv6 access logs, no User-Agent or query logging, and fixed hardening headers such as X-Frame-Options DENY and Referrer-Policy strict-origin-when-cross-origin.
- Known limits: fork() per connection with a 64-worker cap, HTTP/1.1 with Connection: close only, no HTTP/2, no multi-range requests, no on-the-fly compression, and search without stemming or phrase queries.
- Any .html file under the docroot is searchable unless marked noindex, and certificate or password rotation requires a restart rather than SIGHUP.
Discussion No comments have been posted yet, so there is no discussion to summarize. The submission has 2 points and has not drawn any responses.
#webServer #C #staticSites #fullTextSearch #selfHosting #opensource