Ferron
A fast, modern web server built for production debugging.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Overview
Ferron is an open-source, modern web server positioned as "built for debugging in production." Its official tagline is "spend less time configuring, spend less time debugging." It is written in Rust and ships as a single static binary. Its main strengths are a concise, readable configuration file, automatic TLS certificate management, and built-in observability features such as Trace ID correlation, OpenTelemetry, and Prometheus. When the server runs into trouble, you can find the cause directly, instead of guessing your way through multiple logs.
Key Features
Concise configuration
- Uses a compact block syntax (
.conf) and also supports JSON configuration, which is convenient for automation. For example, adding automatic TLS to a reverse proxy takes just two lines:
example.com {
proxy http://localhost:3000
}
- Supports snippets, file includes, and reusable conditional matchers, so the same rules can be shared across multiple hosts.
ferron validatechecks syntax and structure, andferron doctorgives best-practice warnings, so errors can be caught before going live.- Configuration can be hot-reloaded via the SIGHUP signal or the admin API's
POST /reload, without dropping existing connections. ferron adaptconverts the configuration to JSON, making it easy to audit, diff, and generate with tools.
Automatic TLS
- Certificates for public hosts are issued and renewed automatically via ACME. Let's Encrypt and any RFC 8555-compliant CA are supported, with three validation methods: HTTP-01, TLS-ALPN-01, and DNS-01.
- HTTP-to-HTTPS redirects are enabled by default.
- Supports on-demand issuance: a certificate is requested only on the first connection, which suits SaaS scenarios with a large number of custom domains.
- Manual certificates, a local CA, and mTLS client authentication are also available.
- Supports TLS 1.2/1.3 with secure cipher suites by default, and provides OCSP stapling and session ticket key rotation.
Static sites, proxying, and application hosting
- HTTP/1.1, HTTP/2, H2C, and HTTP/3 (QUIC) are enabled by default.
- Static file serving supports index files, directory listings, and precompressed zstd, Brotli, and gzip files.
- The reverse proxy supports multiple load-balancing strategies (random, round-robin, least-conn, p2c-ewma), as well as circuit breaking, active health checks, retry budgets, and DNS SRV upstream discovery.
- PHP can be hosted by connecting to PHP-FPM via FastCGI, and CGI, SCGI, and forward proxy modes are also supported.
- Requests can be matched by path, method, header, IP, or expression, with support for rewrites, redirects, and canary traffic splitting.
- Supports gzip, Brotli, deflate, and zstd compression, and provides file caching and edge caching. The edge cache is LSCache-compatible and can be used to speed up WordPress.
- Access control includes Basic authentication, forward authentication, rate limiting, automatic banning of abusive clients, and security response headers.
Production debugging and observability
- Every request carries a Trace ID that follows the W3C Trace Context standard. Access logs and application logs share the same ID, so a single
grepcan reconstruct the full journey of a request, with no need to deploy an extra log collector. - Logs support JSON and plain-text formats, and are compatible with logrotate, journald, and common log collection tools.
- Built-in OTLP export can send tracing data and logs to systems such as Jaeger, Tempo, Grafana, and Better Stack.
- Provides a Prometheus scrape endpoint and ready-made Grafana dashboards, and also supports StatsD output.
- The admin API offers endpoints such as
/config,/status, and/runtime, which let you view the running configuration, upstream health status, and reload history, and also detect manual changes that bypass the normal workflow (configuration drift).
Target Users and Use Cases
- Developers and ops engineers looking for a web server that is easier to configure than Nginx or Apache.
- Users building home labs or self-hosting services on a Raspberry Pi.
- Infrastructure engineers who need to troubleshoot production incidents and integrate with an observability stack.
- Site owners hosting PHP or WordPress sites who want faster page loads.
- SaaS platforms that need to automatically issue certificates for large numbers of customer custom domains.
Core Strengths
- Memory safety: Written entirely in Rust, with no significant C dependencies on the hot path, which fundamentally avoids problems such as buffer overflows and use-after-free.
- Works out of the box: Uses a multithreaded async runtime, so there is no need to tune worker counts or connection pools. On Linux, io_uring acceleration is optional, with an automatic fallback to epoll when it is unavailable.
- Single-binary deployment: No extra interpreter or runtime is needed, and upgrading is as simple as replacing the binary.
- Efficient troubleshooting: Trace IDs tie logs, traces, and metrics together, so investigating a problem comes down to looking up records by ID.
Installation and Deployment
- Debian/Ubuntu, RHEL/Fedora: Installing from the official packages is recommended.
- Install script:
sudo bash -c "$(curl -fsSL https://get.ferron.sh/v3)" - Windows: Download from the official website's download page.
- Docker: Official images are provided.
- Build from source: You can build with the default modules or choose your own.
Technical Requirements
- Operating systems: Linux, Windows, macOS, FreeBSD, or Docker.
- CPU architectures: x86-64, ARM64, ARMv7, RISC-V, s390x, PowerPC.
Notable Points
- Two major versions, v3 and v2, are currently used in production and both are maintained.
- The official website, ferron.sh, itself runs on Ferron.
- The community is mainly on GitHub, Matrix, and the official forum, Ferron Discuss.
Discover more
Koblas
Lightweight SOCKS5 proxy server.
Calagopus
A modern game server management panel built in Rust. Deploy, monitor, and manage Minecraft, Rust, and other game servers with industry-leading performance.
MeiliSearch
Ultra relevant, instant and typo-tolerant full-text search API.
Vinyl Cache
Web application accelerator/caching HTTP reverse proxy (formerly Varnish).
authentik
The authentication glue you need.
g3proxy
Enterprise-oriented Generic Proxy Solutions. Maintenance mode now, please switch to use [VEY](https://github.com/VEY-OSS/vey) for new development efforts