Self-host Caddy
v2.11.9Fast web server with automatic HTTPS by default
- Stars
- 78 872
- Port
- 80 (HTTP)
caddyWhat is Caddy?
Caddy is a production-ready web server and reverse proxy that makes HTTPS automatic and mandatory. It obtains and renews TLS certificates from Let's Encrypt or ZeroSSL for public domains, and runs its own local CA for internal names and localhost. The server supports HTTP/1.1, HTTP/2, and HTTP/3 out of the box, and its modular architecture allows extending functionality through plugins. Configuration uses a simple Caddyfile format or native JSON with a REST API for dynamic updates. Caddy runs as a single static binary with no external dependencies on Linux, macOS, Windows, and BSD systems. It is used in production at scale, serving trillions of requests and managing millions of certificates.
Should you self-host Caddy?
Caddy scores 90/100 on selfhost.directory (how scoring works) and ranks #1 of 12 in Web Servers. It has 78 872 GitHub stars, +2 611 in the last 30 days.
It shipped 8 stable releases in the past year. The latest, v2.11.9, came out on 5 November 2026. New versions land roughly every 4 weeks.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is NGINX (85/100, 32 075 stars). Caddy scores higher overall. See Caddy vs NGINX side by side.
Features
- Cluster coordination
- Compression (gzip, zstd, brotli)
- Config Adapters
- On-Demand TLS
- Rate Limiting
- Reverse Proxy
- Static File Server
- WebDAV
- Zero-Downtime Reloads
Caddy README
How to install Caddy
Install Caddy with Docker
docker pull caddy
services: caddy: image: caddy: restart: unless-stopped ports: - "80:80" - "443:443" - "443:443/udp" volumes: - ./conf:/etc/caddy - ./site:/srv - caddy_data:/data - caddy_config:/config
volumes: caddy_data: caddy_config:
Official Docker image on Docker Hub; recommended Docker Compose configuration shown.
Install Caddy with Linux
sudo apt install --yes debian-keyring debian-archive-keyring apt-transport-https curl curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list sudo chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg sudo chmod o+r /etc/apt/sources.list.d/caddy-stable.list sudo apt update sudo apt install caddy
Official Cloudsmith repository; installs as systemd service.
Install Caddy with Windows
choco install caddy
Community-maintained Chocolatey package.
Install Caddy with macOS
brew install caddy
Community-maintained Homebrew formula.
Install Caddy with Build from Source
git clone https://github.com/caddyserver/caddy.git cd caddy/cmd/caddy/ go build
Or with xcaddy for plugins:
xcaddy build
Requires Go 1.26.0 or newer.
How to configure Caddy
CaddyfileSimplified, human-friendly configuration format for CaddyJSON configNative JSON configuration format with REST API for dynamic updatesConfig adaptersSupport for YAML, TOML, NGINX config, and other formats via adapters
Caddy releases & version history
This is a quick follow-up on top of 2.11.8, to fix a regression it introduced and a few more security issues, mostly in FastCGI. It contains only fixes backported from master, plus a couple of small additions. If you're on 2.11.8 and serve PHP, we recommend upgrading.
Huge thank you to our sponsors for keeping the project alive with resources, and for our maintainers who triage and assist tirelessly in this relentless new age of AI.
Highlights
- Fixed: PHP directory indexes (regression in 2.11.8). A request for a directory with a trailing slash, like
/wp-admin/, was matched by the directory itself instead of itsindex.php, so it never reached PHP and usually got a 404. This broke WordPress admin pages and other apps that serve an index through a trailing-slash URL. Atry_filespattern now only matches a directory when it ends in/. Thanks @dunglas! (#8352) - Path matchers with placeholders now work as expected: placeholders like
{env.FOO}are no longer lower-cased into{env.foo}before they're looked up, and their values are compared case-insensitively against the request path, like static patterns. Thanks @BenMacha! (#8343) - New
plain_time_formatoption forfile_server browse: sets the time layout of plain-text directory listings (Accept: text/plain). Thanks @steffenbusch! (#8084) - Fewer allocations in path cleaning, header rewriting and
weighted_round_robinselection. Thanks @jvoisin! (#7842) - For plugin authors: new
httpcaddyfile.Helper.IsNamedRoute()tells a directive whether it's being parsed inside a named route. (#8354)
⚠️ Breaking changes
- Conflicting
client_authis now a Caddyfile error. When two site blocks share TLS connection policies for the same hostname but set differentclient_auth, the adapter used to keep the first one and silently drop the other, which could quietly remove a stricter mTLS requirement. (#8306) - FastCGI requests that are ambiguous about which script they run get
400: - FastCGI
envvalues now take precedence over request headers, so a client can no longer overrideHTTP_*variables you set withenv(see below). (#8358)
Security fixes
Thank you to everyone who reported responsibly and helped with patches:
- fastcgi: A client could override any
HTTP_*variable set with the FastCGI transport's (orphp_fastcgi's)envsubdirective by sending a matching request header, for example choosing the user an application sees inHTTP_X_AUTH_USER. Configured values now win. Reported by @JebeenLee and @Camel4, fixed by @dunglas. (GHSA-q34h-28rj-5hjm, #8358) - fastcgi: On Windows, NTFS 8.3 short names and alternate data streams could run a script that a path rule was meant to deny, completing the FastCGI fix from 2.11.8. Thanks @dunglas. (GHSA-9cr8-wmhh-39pm, #8356)
- fastcgi: Encoded slashes and dot segments could make a
%-containing path matcher approve one script while another one runs. Thanks @dunglas. (#8357) - fastcgi: Over HTTP/2, a
hostfield sent next to:authoritycould make the application see a different host (HTTP_HOST) than the one Caddy routed the request to. Thanks @dunglas. (#8355) - httpcaddyfile: A stricter
client_authcould be silently dropped when merging TLS connection policies (see above). Thanks @sam-kota. (#8306) - Updated
go-joseto v4.1.6 for GHSA-mgcc-cww5-fp2q. (#8299)
⚠️ These security patches may be breaking if your application relies on the buggy behaviors.
🚨 Notice for Caddy plugin maintainers: Dependabot will probably alert you to the security fixes in Caddy and urge you to upgrade it in your go.mod file. Please ONLY upgrade the Caddy dependency if there's a change to an exported API your plugin uses.
What's Changed
- caddyhttp: lower-case path patterns with placeholders at request time by @BenMacha in #8343
- httpcaddyfile: reject conflicting client_auth when merging TLS policies by @sam-kota in #8306
- build(deps): bump the actions-deps group across 1 directory with 10 updates by @dependabot[bot] in #8340
- build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.5 to 4.1.6 by @dependabot[bot] in #8299
- fileserver: make plain-text browse time format configurable by @steffenbusch in #8084
- fileserver: only match a dir when the pattern ends by / by @dunglas in #8352
- httpcaddyfile: add Helper.IsNamedRoute by @dunglas in #8354
- fastcgi: take HTTP_HOST from the routed host only by @dunglas in #8355
- fastcgi: reject Win 8.3 aliases and alt data streams paths by @dunglas in #8356
- caddyhttp: presize buffers in hot paths to reduce allocations by @jvoisin in #7842
- fastcgi: let configured env variables override request headers by @dunglas in #8358
- fastcgi: reject paths whose escaped form selects another script by @dunglas in #8357
Full Changelog: v2.11.8...v2.11.9
This patch release is a big batch of bug fixes and security hardening, plus a handful of small additions. This release is cut from our 2.11 maintenance branch: fixes are backported from master. We recommend upgrading, especially if you serve PHP or use {host} in file paths.
Huge thank you to our sponsors for keeping the project alive with resources, and for our maintainers who triage and assist tirelessly in this relentless new age of AI.
⚠️ Please read the breaking changes below before upgrading. Most of them reject configs or requests that never did what they looked like they did, so most setups won't notice.
Highlights
- Idle timeouts, round two. More fixes for the idle read/write timeouts introduced in 2.11.6:
- Per-route
timeoutsnow take precedence over the server-wideread_body_idle/write_idle, and nestedtimeoutsuse the innermost one. (#8121) - Over HTTP/2, a handler that paused reading the request body (like
reverse_proxyuploading to a slow upstream) no longer loses the body and fails with 502. (#8125) - Deadlines set by handlers now act as a ceiling instead of being overridden, so things like Mercure's
dispatch_timeoutand FrankenPHP'srequest_body_timeoutwork again. Thanks @dunglas! (#8145, #8284) - HTTP/1.1 uploads that time out with a little body left no longer hang instead of sending the error response. Thanks @SiyXo511! (#8178)
- Per-route
- Binding privileged ports with fewer capabilities (Linux): If
CAP_NET_BIND_SERVICEis permitted but not effective, Caddy raises it just for binding a privileged port. Packagers can usesetcap cap_net_bind_service=+pinstead of+ep, so Caddy still starts under--cap-drop ALL, OpenShift'srestricted-v2, or systemd units with an emptyCapabilityBoundingSet=. It also follows the kernel'sip_unprivileged_port_startinstead of assuming 1024. (#8102, #8253) - Small additions:
- new
log_leveldirective to set the access log level for matching requests, e.g.log_level @healthchecks DEBUG(#8201) - new
{time.now.rfc3339}placeholder. Thanks @steadytao! (#8140) - new
notmatcher for TLS connection policies. Thanks @simonether! (#8138) - the
tlsmatcher can be used in CELexpressionmatchers:tls(),tls('complete'),tls('early_data'). Thanks @stackedbyaradhya! (#8088)
- new
- Reverse proxy:
- headers you set yourself (like
Strict-Transport-Securityviaheader) are no longer lost when the upstream sends a 1xx response first, like 103 Early Hints (#8169) - request trailer values are forwarded, not just their names. Thanks @krishsinghhura! (#8246)
- request-only
expressions inlb_retry_matchno longer retry successful responses (a regression since 2.11.3) (#8168) - dial errors through a forward proxy and to FastCGI backends are retried like other dial errors. Thanks @adarshxsh and @zemamba! (#8264, #8172)
weighted_round_robinno longer panics with fewer weights than upstreams, and no longer picks an unavailable upstream when there's only one weight;random_choosepicks the least loaded host when all are busy (#8159, #8320, #8160)- with
request_buffers/response_buffers unlimited, a body that fails partway is no longer treated as complete (#8207) - connections and sockets are no longer leaked when a protocol upgrade (e.g. WebSocket) fails during setup, or when a
handle_responsestatus isn't a number. Thanks @Version2beta and @BenMacha! (#8269, #8318) - HTTP/3 client cancellations are logged at debug level instead of as warnings. Thanks @larrasket! (#8135)
- headers you set yourself (like
encode:If-None-Matchlists and weak tags get 304s properly (#8128), HEAD responses no longer get a bogusContent-Length(#8150), andAccept-Encoding/Cache-Controlsplit across several header lines are all taken into account, with faster header handling in the proxy too. Thanks @Indra55, @jayhemnani9910 and @dunglas! (#8025)- PHP / FastCGI: a
Locationresponse without aStatusis now a 302 redirect, as CGI specifies (#8209), and an app that writes more than its declaredContent-Length(like a PHP warning after the page) no longer corrupts HTTP/1.1 responses or kills HTTP/2 connections. Thanks @Sulaiman-Dauda! (#8212) - TLS & ECH:
- when Caddy rejects Encrypted ClientHello, it now sends retry configs, so clients with stale ECH configs can recover. Thanks @videah! (#8142)
- an ECH public name that also has its own site block keeps that site's TLS settings (#8156)
client_authmodesrequestandverify_if_givenno longer reject clients without a certificate when verifiers are configured (#8251)- a site block spanning several listener addresses no longer lets one listener's TLS connection policy (including client authentication) overwrite another's. Thanks @steadytao! (#8192)
- repeated matcher lines in a TLS policy
matchblock are all applied, not just the first. Thanks @simonether! (#8137) - merged automation policies keep a specific domain's policy ahead of a wildcard's (#8287), and an ACME issuer's
network_proxysurvives re-provisioning (#8288)
- Caddyfile:
caddy runprints the error again when startup fails, instead of silently exiting with code 1. Thanks @IndraGunawan! (#8180)- routes in a group that already matched no longer run their matchers, which fixes e.g.
try_files {path} {path}.html?{query} =404returning 404 for everything (#8189) - multiple
handle_errorsblocks andvarsnow follow Caddyfile order (#8195, #8197) - each
?Fielddefault in aheaderblock is checked on its own, and respectsmatch(#8217) importshows the real OS error for files it can't read (#8163), negative{args[...]}indices no longer panic (#8316), and very long heredoc markers no longer make parsing crawl (#8203, #8249)
file_server: a path below a regular file (/index.php/foo) is a 404 again and works withpass_thru(#8131);browsehandles symlinks in directories with escaped names (#8152) and offsets past the end (#8213)templates: template errors no longer keep staleContent-Length/Etagheaders (#8149), bodyless responses no longer getContent-Length: 0(which broke iOS PWAs) (#8153), plus fixes forhumanizetime layouts with colons and front matter closed with...(#8215, #8259)- Logging:
includeof a parent namespace includes its child modules (#8221),dir_mode from_fileno longer creates unusable directories (#8225), and log routing to a site's logger ignores Host case (#8176) - Admin API: with remote admin
access_control, a request is allowed if any permission entry permits it, not just the first (#8317), andCache-Control: must-revalidateis recognized alongside other directives (#8330) - Other fixes:
caddy hash-passwordhandles Windows line endings and input without a final newline (#8227), a data race in thebasic_authcache is gone (#8278), the Windows service no longer gets stuck inSTART_PENDING(#8274), anduristrip_prefix/strip_suffixhandle percent-escapes and literal%correctly (#8005, #8345) - Release builds use Go 1.27 (Go 1.26 is still the minimum to build Caddy). (#8210)
⚠️ Breaking changes
- Requests with an invalid or dots-only host (like
..) are rejected with400on every protocol, before any route runs. Before, HTTP/2 and HTTP/3 also accepted hosts containing/or\. (#8328) request_bodymax_sizenow rejects a request with413as soon as itsContent-Lengthis over the limit, even if nothing would have read the body. (#8337)php_fastcgisites without anindex.php: requests for paths that don't exist are now sent to PHP asindex.php, as the documentedfirst_exist_fallbacktry policy always promised, instead of falling through tofile_serverand returning404. Also,PATH_INFOandDOCUMENT_URIare now derived from the normalized path (repeated slashes merged,.segments removed);REQUEST_URIis unchanged.- A
try_files/filecandidate ending in/only matches a directory, so/foo.txt/no longer matches the file/foo.txt. (#8326) encodenow compresses responses even when the request hasCache-Control: no-transform(a response'sno-transformis still honored), and responses that could have been encoded always getVary: Accept-Encoding. To keep the old behavior:@transformable not header Cache-Control *no-transform*andencode @transformable. Malformed forms likeno-cache; no-transformno longer disable compression. (#8301, #8025)- Stricter config validation. Some configs that were silently accepted (and didn't do what you'd expect) are now errors:
- more than one
expressionline in the same matcher set (combine them with&&) (#8183) - unknown TLS
curvesorprotocol_min/protocol_maxnames, likeTLS1.3instead oftls1.3, which used to be silently ignored (#8266) - a repeated
sni_regexpin a TLS policymatchblock (#8137) ip_masklog filter sizes out of range, like33for IPv4 (#8241)basic_authusernames that end up identical after placeholder expansion (#8315)- ports longer than 11 characters (#8277)
- more than one
- Evaluation order now follows the Caddyfile for
handle_errorsblocks with status codes and forvarswith non-path matchers. If you had overlapping codes or set the same variable twice, a different block or value may now win. (#8195, #8197)
Security fixes
Thank you to everyone who reported responsibly and helped with patches:
- caddyhttp: A
Host/:authorityvalue with dot segments or slashes could escape the intended directory when used in file paths, likeroot /srv/sites/{host}, and withphp_fastcgieven execute files outside it. Such hosts are now rejected (see above). Thanks @dunglas. (GHSA-r766-rf9f-588h, #8328) - fastcgi:
SCRIPT_FILENAMEis now derived from the same normalized path that path matchers see, so a route protected by a path matcher can't be made to run a different script, e.g. with/admin.php/../../other.php. Thephp_fastcgirewrite also always runs now (see above). Thanks @pamnario. (GHSA-f278-mgc7-46j3) - fileserver: The
filematcher no longer resolves paths like/.env/./to the regular file, which bypassed path rules such aspath *.env. Thanks @dunglas. (GHSA-25cw-38mq-q7m6, #8326) - rewrite:
{http.matchers.file.remainder}is now escaped before rewriting, so double-encoded path info (like..%252f) can't turn into../after path rules have run. Thanks @dunglas. (GHSA-69hv-5jfc-mvmv, #8325) - fileserver: When neither
HOMEnorXDG_DATA_HOMEis set, Caddy's data directory falls back to./caddy, and afile_serverserving the working directory could expose certificates and private keys. That directory is now always hidden. Thanks @dunglas. (GHSA-jf74-f69g-hcj9, #8327) - fastcgi: The
php_fastcgitrailing-slash redirect for directories with anindex.phpcan no longer be turned into an open redirect to another site. Thanks @sam-kota. (#8285) - fileserver: Files excluded with
hideno longer show up inbrowselistings, and hiddenprecompressedsidecars are no longer served. Thanks @agammann. (#8155) - reverseproxy: Hop-by-hop headers are stripped from 1xx responses and from
copy_response_headersinhandle_response, completing the fix for CVE-2026-55458. Thanks @SssiiiSssii1 and @tomholford. (GHSA-8qx7-j2v2-x6q5, #8256, #8270) - logging: The
querylog filter now parses request URIs like the server does, so parameters after a#are redacted too. Thanks @jayhemnani9910. (#8255)
⚠️ These security patches may be breaking if your application relies on the buggy behaviors.
🚨 Notice for Caddy plugin maintainers: Dependabot will probably alert you to the security fixes in Caddy and urge you to upgrade it in your go.mod file. Please ONLY upgrade the Caddy dependency if there's a change to an exported API your plugin uses.
Thank you to everyone who was involved in this release, especially our 28 new contributors! 🎉
What's Changed
- core: Raise CAP_NET_BIND_SERVICE when binding privileged ports by @francislavoie in #8102
- timeouts: take precedence over server-wide and enclosing idle timeouts by @francislavoie in #8121
- encode: Fix ETag list matching by @Indra55 in #8128
- fileserver: treat a path below a regular file as not found by @klokv in #8131
- reverseproxy: log HTTP/3 client cancellations at debug level by @larrasket in #8135
- caddytls: keep repeated matchers in nested matcher sets by @simonether in #8137
- core: add RFC 3339 time placeholder by @steadytao in #8140
- caddytls: add not matcher for TLS handshakes by @simonether in #8138
- caddyhttp: only bound HTTP/2 body reads in flight with the idle timeout by @francislavoie in #8125
- caddyhttp: document that negative idle timeouts disable them by @dunglas in #8146
- fileserver: stat symlink targets by decoded path in browse listings by @awss1i in #8152
- caddytls: Send ECH retry configs when rejecting ECH by @videah in #8142
- caddyfile: surface OS error when an import file is inaccessible by @Kshot3000 in #8163
- reverseproxy: Pick the least loaded host in random_choose when all are busy by @jayhemnani9910 in #8160
- reverseproxy: Don't panic in weighted_round_robin with fewer weights than upstreams by @jayhemnani9910 in #8159
- caddyhttp: let handler write deadlines cap the idle write timeout by @dunglas in #8145
- fileserver: apply hide rules to browse entries and precompressed sidecars by @agammann in #8155
- templates: Delete file headers on any template error by @jayhemnani9910 in #8149
- fastcgi: classify dial failures for retry by @zemamba in #8172
- go.mod: update golang.org/x/net to v0.60.0 by @elee1766 in #8179
- reverseproxy: Keep own headers after 1xx responses by @jayhemnani9910 in #8169
- httpcaddyfile: keep a site block's TLS policy for ECH public names by @awss1i in #8156
- encode: Don't write an empty encoded stream for HEAD responses by @jayhemnani9910 in #8150
- caddyhttp: ignore case when matching hosts in logger_names by @tbshfr in #8176
- reverseproxy: Only retry responses for expressions that use response data by @jayhemnani9910 in #8168
- cmd: unbuffer default logger on startup failure by @IndraGunawan in #8180
- caddyhttp: preserve expired request-body read deadlines by @SiyXo511 in #8178
- caddyhttp: skip matchers for satisfied route groups by @jayhemnani9910 in #8189
- caddyhttp: Reject repeated expression matchers in a matcher set by @jayhemnani9910 in #8183
- httpcaddyfile: isolate TLS policies across listeners by @steadytao in #8192
- httpcaddyfile: Keep handle_errors blocks in Caddyfile order by @jayhemnani9910 in #8195
- httpcaddyfile: keep source order for vars with non-comparable matchers by @Icyjerry in #8197
- caddyfile: avoid quadratic heredoc marker scanning by @francislavoie in #8203
- httpcaddyfile: Add log_level directive for access logs by @francislavoie in #8201
- templates: avoid zero content length for bodyless responses by @elee1766 in #8153
- reverseproxy: Don't drop read errors with unlimited buffers by @jayhemnani9910 in #8207
- fastcgi: Use 302 for a Location response without Status by @jayhemnani9910 in #8209
- fileserver: return an empty listing for offsets past the end by @shanejonas in #8213
- templates: preserve colons in humanize time layouts by @SiyXo511 in #8215
- logging: include module logs from its parent namespace by @omaresmael in #8221
- logging: Use the default file mode for dir_mode from_file by @jayhemnani9910 in #8225
- caddyauth: handle CRLF and unterminated hash-password input by @jayhemnani9910 in #8227
- headers: evaluate conditional defaults independently by @jayhemnani9910 in #8217
- ci: fix exhaustive linting by @steadytao in #8238
- caddyfile: check heredoc markers without a regexp by @awss1i in #8249
- logging: Reject out-of-range
ip_maskCIDRs by @jayhemnani9910 in #8241 - caddytls: skip client cert verifiers when no certificate is presented by @awss1i in #8251
- logging: Parse request URIs in the
queryfilter like the server does by @jayhemnani9910 in #8255 - reverseproxy: preserve request trailer values by @krishsinghhura in #8246
- core: Retry privileged binds on EACCES instead of checking port < 1024 by @francislavoie in #8253
- templates: use the earliest front matter closing fence by @jayhemnani9910 in #8259
- reverseproxy: strip hop-by-hop headers from interim responses by @SssiiiSssii1 in #8256
- reverseproxy: retry dial errors wrapped by a forward proxy by @adarshxsh in #8264
- caddyhttp: add CEL expression support to the tls matcher by @stackedbyaradhya in #8088
- windows: serialise service status updates by @krishsinghhura in #8274
- reverseproxy: close backend body and hijacked socket on upgrade setup failures by @Version2beta in #8269
- replacer: cache file lookups and cap them by @mohammed90 in #8248
- reverseproxy: strip hop-by-hop headers when copying response headers by @tomholford in #8270
- fastcgi: Stop response bodies at the declared Content-Length by @Sulaiman-Dauda in #8212
- caddytls: validate curve and protocol names, compare protocol IDs by @HakeemTheEmperor in #8266
- caddytls: keep ACME issuer network proxy after RebuildCertMagic by @k4lleanka in #8288
- fastcgi: keep the php_fastcgi directory redirect on the same origin by @sam-kota in #8285
- build(deps): bump github.com/go-chi/chi/v5 from 5.3.2 to 5.4.0 by @dependabot[bot] in #8298
- caddyhttp: document CEL raw strings for regexp patterns by @francislavoie in #8280
- caddyhttp: optimise header access and fix encoding negotiation by @dunglas in #8025
- caddyhttp: let handler read deadlines cap the idle read timeout by @dunglas in #8284
- httpcaddyfile: preserve automation policy precedence when merging by @bwisn in #8287
- ci: Use macos-latest runner instead of pinning macos-14 by @francislavoie in #8312
- encode: ignore request no-transform, vary identity responses on Accept-Encoding by @dunglas in #8301
- core: reject overlong ports in ParseNetworkAddress by @jasperdingg in #8277
- caddyauth: check basic_auth username uniqueness after placeholder expansion by @10kartik in #8315
- rewrite: escape file matcher remainder before rewriting by @dunglas in #8325
- fileserver: don't match regular file when path ends by slash by @dunglas in #8326
- fileserver: hide the data directory when it is relative by @dunglas in #8327
- admin: better Cache-Control handling by @dunglas in #8330
- encode: use httpguts to look for Accept-Encoding in Vary by @dunglas in #8329
- deps: update x509roots/fallback by @elee1766 in #8333
- ci: test and release with Go 1.27 by @krishsinghhura in #8210
- caddyhttp: reject invalid and dots-only hosts on every protocol by @dunglas in #8328
- caddyhttp: correct path matcher doc on bare trailing wildcards by @datrixlab in #8006
- rewrite: fix strip_path_suffix decoding a literal '%' as an escape by @datrixlab in #8005
- reverseproxy: close upstream body when handle_response status is invalid by @BenMacha in #8318
- fileserver: handle empty files in size try policies by @BenMacha in #8322
- reverseproxy: skip unavailable upstream with a single weighted_round_robin weight by @BenMacha in #8320
- admin: authorize remote requests matching any permission entry by @BenMacha in #8317
- rewrite: treat only valid percent encodings as escapes by @steadytao in #8345
- caddyfile: reject negative import argument indices by @BenMacha in #8316
- requestbody: enforce max_size early using Content-Length by @dunglas in #8337
- caddyauth: avoid writing into the shared hash buffer by @VenkateshPanda0 in #8278
- ci: release changelogs since the previous published release, and workflow hardening by @francislavoie in #8341
New Contributors
- @klokv made their first contribution in #8131
- @simonether made their first contribution in #8137
- @awss1i made their first contribution in #8152
- @videah made their first contribution in #8142
- @Kshot3000 made their first contribution in #8163
- @jayhemnani9910 made their first contribution in #8160
- @agammann made their first contribution in #8155
- @zemamba made their first contribution in #8172
- @tbshfr made their first contribution in #8176
- @SiyXo511 made their first contribution in #8178
- @Icyjerry made their first contribution in #8197
- @shanejonas made their first contribution in #8213
- @omaresmael made their first contribution in #8221
- @krishsinghhura made their first contribution in #8246
- @SssiiiSssii1 made their first contribution in #8256
- @adarshxsh made their first contribution in #8264
- @stackedbyaradhya made their first contribution in #8088
- @Version2beta made their first contribution in #8269
- @Sulaiman-Dauda made their first contribution in #8212
- @HakeemTheEmperor made their first contribution in #8266
- @k4lleanka made their first contribution in #8288
- @sam-kota made their first contribution in #8285
- @bwisn made their first contribution in #8287
- @jasperdingg made their first contribution in #8277
- @10kartik made their first contribution in #8315
- @datrixlab made their first contribution in #8006
- @BenMacha made their first contribution in #8318
- @VenkateshPanda0 made their first contribution in #8278
Full Changelog: v2.11.7...v2.11.8
This patch release fixes regressions from 2.11.6, including a crash when proxying over HTTP/2 and streams that were cut off after a minute. If you're on 2.11.6, we recommend upgrading. It also adds support for the brand new Incremental header field (RFC 10036).
Huge thank you to our sponsors for keeping the project alive with resources, and for our maintainers who triage and assist tirelessly in this relentless new age of AI.
Highlights
-
Fixed: crash and dropped streams caused by the new idle timeouts. 2.11.6 introduced default idle read/write timeouts, which caused some problems:
-
In 2.11.6, the request body's idle deadline could outlive the handler that set it:
- Over HTTP/2, Caddy could panic with a nil pointer dereference when the reverse proxy was still reading a request body after the handler had returned. (#8101)
- Over HTTP/1.1, streaming responses to requests with a body, such as SSE clients that open the stream with a
POST, were cut off exactly 60 seconds after the body was read. (#8103)
Both are fixed in #8107. Thanks @steadytao!
-
Over HTTP/2, streaming responses that paused between writes for longer than
write_idle(1 minute by default), like quiet SSE streams, were reset with a stream error. As documented, only a write that stalls should count. Thanks @WeidiDeng! (#8118, #8119)
-
-
Fixed: placeholders for missing cookies are empty again. Since 2.11.6, places that keep unknown placeholders as written, like
respondheaders, would output{http.request.cookie.*}literally when the cookie wasn't in the request. The same happened to{http.request.tls.*}on plain HTTP requests. Both are empty again. Thanks @steadytao! (#8019) -
New: support for the
Incrementalheader field (RFC 10036). It's the standard replacement for NGINX's proprietaryX-Accel-Bufferingheader. If an upstream response hasIncremental: ?1,reverse_proxyforwards it immediately, the same asflush_interval -1, andencodestreams it instead of holding it back. Great for Mercure, SSE and other streaming apps.- If the
request_buffersorresponse_buffersoptions would prevent incremental forwarding, Caddy responds with501 Not Implementedinstead of silently buffering, as the RFC requires. - The new
proxy_status_nameoption adds aProxy-Statusheader to those responses, explaining why the message was refused.
- If the
-
Faster TLS handshakes: When nothing subscribes to certificate events and debug logging is off, CertMagic no longer builds event data for every handshake. Certificate lookup per handshake is about twice as fast, with 10 allocations instead of 15. Thanks @u5surf! (#8010)
-
Unix sockets: When a reload moves a listener (or the admin endpoint) off a Unix socket, the old socket now closes right away and its file is removed. Before, clients connecting to the old path would hang until the next garbage collection, about 2 minutes later. Thanks @littfed! (#8061)
-
Headers handler: Multiple
Set-Cookievalues in a JSON config'ssetare now sent as separate header fields, instead of being joined with commas into one field that clients can't parse. Thanks @Indra55! (#8080) -
caddy fmtno longer deletes an opening brace at the very end of the input. Thanks @n0liu! (#8047)
What's Changed
- events: tell CertMagic which events are worth emitting by @u5surf in #8010
- feat: implement the Incremental header field (RFC 10036) by @dunglas in #8020
- caddyfile: Keep an opening brace that ends the input by @n0liu in #8047
- listeners: close unix socket immediately and unlink file on reload by @littfed in #8061
- reverseproxy: stabilise half-close test by @steadytao in #8049
- caddyhttp: keep absent optional placeholders empty by @steadytao in #8019
- headers: Preserve separate Set-Cookie values by @Indra55 in #8080
- caddyhttp: end request-body deadline ownership with handler by @steadytao in #8107
- timeouts: fix idle writer terminate h2 response writers between writes by @WeidiDeng in #8119
New Contributors
Full Changelog: v2.11.6...v2.11.7
This patch release contains a large number of minor and some noticeable enhancements and bug fixes. Thank you to everyone who contributed or spent their LLM tokens responsibly to help with this release!
We have much more in the pipeline still, as AI has made contributions of all quality levels cheap and easy. We will be trying to go through them as quickly and efficiently as we can.
Huge thank you to our sponsors for keeping the project alive with resources, and for our maintainers who triage and assist tirelessly in this relentless new age of AI.
⚠️ Please read the breaking changes below before upgrading. Most of them come from security hardening, and most configs won't notice. If you were relying on one of the old behaviors, though, you'll want to know about it.
Highlights
- New
url_patternrequest matcher: Match requests with the URLPattern standard, the same syntax used by browsers (JS) and many web frameworks. It supports named groups, wildcards, and regexp components. Captured groups become placeholders ({http.url_pattern.<component>.<group>}), and there's a matchingurl_patternCEL function too. Thanks @dunglas! (#7787) - Slowloris mitigation: New idle read/write timeouts reset on every successful read or write. A stalled connection gets cut off, and a slow one that's still making progress is left alone. You can also set optional minimum transfer rates, and there's a new
timeoutshandler directive for per-route tuning. (#7913) - New
tls_automate_namesglobal option: Manage certificates for names without serving them in a site block. (#8015) - New
expected_underscore_headersserver option: If dropping header fields with underscores in 2.11.4 broke your app, you can now list the specific headers to keep. (#7809) - HTTP/3 over Tailscale and other low-MTU links now works, because the initial QUIC packet size is smaller. (#7886)
- Reverse proxy got more love:
- partial responses are flushed to clients properly (#7849)
- TCP half-close is propagated on upgraded streams (#8027)
versions 3upstreams now honortls_trust_pool(#8042)- active health check state is kept separate per check config, so one handler's failing probes don't mark the upstream down for everyone else (#7916)
- the
random_choosepolicy distributes correctly now (#7873)
- Server-sent events behind
encodenow stream immediately instead of being buffered. (#7905) - Graceful shutdown now waits for servers left over from previous configs, so long-lived responses that started before a reload aren't cut off at exit. (#8009)
- Caddyfile:
importnow works inside named routes (#7986), and quoted braces are treated as literal arguments (#7875). - Logging:
- new
set_cookielog filter (#7888) roll_intervalaccepts days (d) (#7900)- recovered handler panics are logged at ERROR level (#7924)
- write timeout errors show up in access logs (#7945)
- new
- Performance: fewer allocations in request hot paths, encoding negotiation, and the reverse proxy, from @jvoisin and @dunglas. Directory browsing is much faster for large directories. (#7847, #7903, #7911, #7925, #7926, #7936)
- Other new stuff:
⚠️ Breaking changes
- Go 1.26 is now the minimum version for building Caddy and plugins. (#8056)
- Request headers are limited to 16 KiB by default. Before, we used Go's 1 MB default. Requests with larger headers (giant cookies, oversized tokens, etc.) will now get
431 Request Header Fields Too Large. If you need more, raise it with themax_header_sizeserver option. - New 1-minute idle read/write timeouts by default. If a request body read or a response write stalls (makes no progress at all) for longer than that, the connection is aborted. Pauses between writes, like with SSE, don't count. Some long-lived streams where the client goes quiet mid-body may be affected. You can tune these with
read_body_idleandwrite_idlein thetimeoutsserver option, or per-route with thetimeoutsdirective. (#7913) - Request header fields containing
.are now dropped, the same way underscores were in 2.11.4. PHP folds.to_, so these could be used to impersonate legitimate headers. If you need specific ones, allow them with the newexpected_dot_headersserver option. - A wildcard site's
client_authno longer applies to more specific hostnames that have their own site blocks. For example,public.example.comno longer inherits mTLS from*.example.com. If you were counting on that inheritance, configureclient_authon the specific site explicitly. (#7920) - Stricter config validation. Some configs that used to be silently accepted (and probably didn't do what you expected) are now errors:
- Admin API
/loadnow returns400with warnings inside a valid JSON body when a config is invalid. Before, it returned200with two concatenated JSON objects. (#7267) methodmatcher values are normalized to uppercase, somethod getnow matchesGETrequests. (#7832)
Security fixes
Thank you to everyone who reported responsibly and helped with patches:
- reverseproxy: When a route used both
forward_authandreverse_proxy, a request could be sent on the wrong upstream connection. Reported by @carlt, fixed by @WeidiDeng. (GHSA-6365-7ppr-5r92, #7859) - reverseproxy: Hop-by-hop headers from upstreams are now stripped from
101 Switching Protocolsresponses too. Thanks @jirn073-76. - caddyhttp:
handle_pathanduristrip_prefix/strip_suffixnow canonicalize the resulting path, so it can't bypass path-based authorization. Thanks @steadytao. - caddyhttp: Extended the 2.11.4 header-alias filter to
.(see above) to prevent bypassingforward_auth copy_headerswith PHP/FastCGI backends. Thanks @dunglas. - caddyhttp: The
path_regexpmatcher now normalizes Windows backslashes like thepathmatcher does. This completes the fix for CVE-2026-52844. Thanks @thientd. (#7858) - fileserver: Windows 8.3 short names are rejected in every path component, not just the last one. Thanks @DavidCarliez. (#7952)
- fileserver: Fixed ETag collisions between files with different modification times and sizes. Thanks @dunglas.
- fastcgi: The client's
Proxyheader is no longer passed to backends asHTTP_PROXY(HTTPoxy). Thanks @bzyy1024. (#7934) - reverseproxy: Sticky session cookie hashes are compared in constant time. Thanks @alhudz. (#7853)
- admin: Request paths are normalized in the remote admin access check, and origin/host allow-lists compare case-insensitively (defense-in-depth). Thanks @AmariahAK, @mohammed90, and @hktitof. (#7910, #7973, #7993)
- caddyhttp: Oversized request bodies used through placeholders now correctly return
413. Thanks @hktitof. (#7969)
⚠️ These security patches may be breaking if your application relies on the buggy behaviors.
🚨 Notice for Caddy plugin maintainers: Dependabot will probably alert you to the security fixes in Caddy and urge you to upgrade it in your go.mod file. Please ONLY upgrade the Caddy dependency if there's a change to an exported API your plugin uses. Note that doing so now also requires Go 1.26.
Thank you to everyone who was involved this release, especially our 40 new contributors! 🎉
What's Changed
- reverseproxy: replace placeholders specified for sni while using http3 by @WeidiDeng in #7737
- caddyhttp: add {http.request.proto_name} placeholder for spec-compliant protocol names by @Jualhosting in #7782
- httpcaddyfile: error on duplicate named_routes by @vijayvenkatj in #7800
- cmd: colored error message in WrapCommandFuncForCobra (#7760) by @u5surf in #7768
- chore: add missing "is" in SECURITY.md by @AliMickey in #7802
- reverseproxy: validate on weighted_round_robin loadbalancing policy by @vijayvenkatj in #7807
- forwardauth: error on duplicate uri subdirective by @vijayvenkatj in #7814
- encode: add standard benchmark and conformance harness by @ottenhoff in #7804
- caddyhttp: restore allow_underscore_in_headers server option by @bluegate-studio in #7809
- rewrite: fix wrong index check in trimPathPrefix by @alhudz in #7812
- intercept: fix replace_status being silently dropped by @oksusucha in #7810
- fileserver: append repeated hide subdirectives instead of overwriting by @luccinmasirika in #7817
- rewrite: scope keyed query replace to its named key by @alhudz in #7818
- reverseproxy: log status 499 instead of 0 when client disconnects by @larrasket in #7827
- tracing: fix BatchSpanProcessor goroutine leak on config reload by @Dean2026 in #7826
- caddyhttp: normalize method names to uppercase in MatchMethod.Provision by @yintaisha in #7832
- caddyhttp: add URL pattern request matcher by @dunglas in #7787
- caddyhttp: fix escaped path matcher over-matching longer paths by @alhudz in #7828
- core: preserve metrics registry in Context.WithValue by @dunglas in #7861
- reverseproxy: compare sticky-session cookie hash in constant time by @alhudz in #7853
- reverseproxy: fix misleading handle_response error for extra matcher args by @TowyTowy in #7869
- reverseproxy: save dial info in a context key instead of a variable k… by @WeidiDeng in #7859
- caddyhttp: fix path_regexp (MatchPathRE) Windows backslash bypass by @thientd in #7858
- intercept: fix misleading handle_response error for extra matcher args by @TowyTowy in #7871
- build(deps): bump cel-go from v0.28.1 to v0.29.2 by @techknowlogick in #7872
- reverseproxy: fix broken reservoir sampling in random_choose policy by @TowyTowy in #7873
- caddyfile: treat quoted braces as literal arguments by @elee1766 in #7875
- logging: hash query parameter values in QueryFilter by @PichuChen in #7884
- chore: fix sabotage spelling in nolint comments by @futurehua in #7892
- pki: Handle error immediately after reading root from disk by @hslatman in #7896
- log: support
d(day) inroll_intervaldirective by @mohammed90 in #7900 - deps: update GitHub Actions and Go modules by @steadytao in #7876
- build(deps): bump google.golang.org/grpc from 1.81.1 to 1.82.1 by @dependabot[bot] in #7908
- core: reduce QUIC initial packet size for low-MTU paths by @Salynn in #7886
- rewrite: preserve non-canonical path encoding after uri replace by @larrasket in #7907
- caddyhttp: use canonical header key casing to avoid re-canonicalization by @dunglas in #7911
- caddyconfig: Register nested named-route invokes transitively by @SillyZir in #7898
- encode: reduce allocations in AcceptedEncodings by @jvoisin in #7847
- encode: flush headers immediately for server-sent events responses by @SillyZir in #7905
- fileserver: speed up directory browsing for large directories by @firefart in #7903
- caddyauth: isolate provider responses to prevent cross-provider clobbering by @SillyZir in #7904
- log: don't allow overwriting singly-assigned vals by @mohammed90 in #7927
- caddyconfig: cancel HTTP loader requests with context by @cuishuang in #7918
- feat(fastcgi): populate SERVER_ADDR by default by @renich in #7912
- reverseproxy: reduce allocation/CPU overhead in request hot paths by @jvoisin in #7925
- reverseproxy: preallocate upstream slices with known sizes by @jvoisin in #7926
- network_proxy: reject proxy URLs that resolve to a port with no host by @r0h1tb in #7922
- caddyhttp: log recovered handler panics at ERROR level by @ousamabenyounes in #7924
- caddyhttp: allocate the request UUID lazily instead of on every request by @jvoisin in #7936
- caddyhttp: shield specific hostnames from a covering wildcard's client auth by @SillyZir in #7920
- reverseproxy: isolate active health-check state per distinct check config by @SillyZir in #7916
- logging: add set_cookie log filter for Set-Cookie response headers by @steffenbusch in #7888
- caddyhttp: fix url_pattern authorization bypass via encoded-slash traversal by @dunglas in #7941
- fix: close resources on error paths by @ittakestwo123 in #7940
- fastcgi: fix HTTPoxy vulnerability by @bzyy1024 in #7934
- caddyhttp: mitigate slowloris via idle read/write deadlines by @dunglas in #7913
- chore: fix lint errors from newer golangci-lint by @faiyazrahmann in #7958
- pki: honor skip_install_trust for explicit tls internal issuers by @gautamrizwani in #7894
- caddyfile: clarify ArgErr documentation by @0jaspahwa in #7960
- rewrite: fix URI splitting when a query or fragment arrives via a placeholder by @francislavoie in #7947
- admin: normalize request path in remote admin access-control check (defense-in-depth) by @AmariahAK in #7910
- fileserver: reject short names in every path component by @DavidCarliez in #7952
- rewrite: fix strip_path_suffix ignoring percent-encoding by @TowyTowy in #7877
- admin: stabilise log redaction test by @steadytao in #7942
- chore: fix canonicalheader failures by @steadytao in #7964
- cmd: upgrade automemlimit to v1.0.0 by @dunglas in #7978
- caddy: fix ParseNetworkAddress port-range span off-by-one by @mohammed90 in #7975
- usagepool: avoid lock inversion after constructor failure by @kojah in #7968
- cmd: reject ambiguous module version separators by @mohammed90 in #7974
- admin: fix origin allow-list host comparison to be case-insensitive by @mohammed90 in #7973
- caddyfile: fix importGraph self-loop and stale-edge bugs by @mohammed90 in #7971
- caddyhttp: remove unused QUICConfig from the HTTP/3 server by @faiyazrahmann in #7980
- fileserver: reject non-integer browse file_limit by @SashaMIT in #7988
- caddyhttp: surface write timeout errors in access log by @faiyazrahmann in #7945
- admin: fix host allow-list comparison to be case-insensitive by @hktitof in #7993
- caddytls: synchronize storage cleaner with TLS.Stop via context and WaitGroup by @jum in #7954
- httpcaddyfile: give each adaptation its own directive order by @faiyazrahmann in #7995
- listen: don't wedge a reloaded listener sharing a socket on Windows by @alexandre-daubois in #7999
- caddyhttp: demote Alt-Svc ErrNoAltSvcPort to debug level by @jum in #8000
- events: skip dispatch setup when nothing is subscribed by @u5surf in #7997
- reverseproxy: replace only known placeholders in health check body by @IslamElsayed in #8003
- acmeserver: say when the CA database is locked by another process by @faiyazrahmann in #8007
- fix: require module path boundaries when matching packages by @wangjingshuiku in #7957
- caddyhttp: preserve unknown placeholders in static response headers by @hktitof in #8014
- build(deps): bump google.golang.org/grpc from 1.82.1 to 1.83.1 by @dependabot[bot] in #7984
- reverseproxy: propagate TCP half-close on upgraded streams by @btncwn in #8027
- build(deps): bump google.golang.org/grpc from 1.83.1 to 1.83.2 by @dependabot[bot] in #8028
- caddyfile: Expand imports inside named routes by @XiaoleC05 in #7986
- chore(deps): bump cel-go and switch import to new url by @techknowlogick in #8030
- core: synchronize Stop with concurrent config reloads by @H-XX-D in #8038
- reverse_proxy with versions 3 silently ignores tls_trust_pool and verifies against the system roots by @tippexs in #8042
- admin: fix warnings and status code in /load API by @amirdaraby in #7267
- fastcgi: explain 411 responses for unknown-length bodies by @Rohilalala in #7956
- Move websocket header normalization later by @nfreya in #7921
- chore: remove AI moderator workflow by @mohammed90 in #8059
- caddyhttp: surface 413 for oversized request body placeholders by @hktitof in #7969
- reverseproxy: Fix partial response not flushed to clients by @WeidiDeng in #7849
- caddyhttp: fix randString sameCase dictionary to match its docs by @mohammed90 in #7972
- requestbody: replace only known placeholders in the set body by @hktitof in #8008
- internal: fix
MaxSizeSubjectsListForLogoff-by-one whenmaxToDisplayis0by @mohammed90 in #7970 - caddyauth: only replace known placeholders in basic auth credentials by @hktitof in #8017
- map: Distinguish duplicate literal and regexp inputs by @Indra55 in #8067
- map: reject malformed destination placeholders by @sleet0922 in #8074
- httpcaddyfile: new
tls_automate_namesglobal option by @IslamElsayed in #8015 - build: bump all dependencies - (Go 1.26 floor) by @steadytao in #8056
- caddyhttp: wait for servers from previous configs on exit by @dunglas in #8009
- caddyhttp: use errors.AsType for request body limit errors by @mholt in #8090
- ci: pin cosign to v2 for release signing by @francislavoie in #8092
New Contributors
- @vijayvenkatj made their first contribution in #7800
- @AliMickey made their first contribution in #7802
- @bluegate-studio made their first contribution in #7809
- @alhudz made their first contribution in #7812
- @oksusucha made their first contribution in #7810
- @luccinmasirika made their first contribution in #7817
- @larrasket made their first contribution in #7827
- @Dean2026 made their first contribution in #7826
- @yintaisha made their first contribution in #7832
- @TowyTowy made their first contribution in #7869
- @thientd made their first contribution in #7858
- @PichuChen made their first contribution in #7884
- @futurehua made their first contribution in #7892
- @Salynn made their first contribution in #7886
- @SillyZir made their first contribution in #7898
- @jvoisin made their first contribution in #7847
- @firefart made their first contribution in #7903
- @renich made their first contribution in #7912
- @r0h1tb made their first contribution in #7922
- @ousamabenyounes made their first contribution in #7924
- @ittakestwo123 made their first contribution in #7940
- @bzyy1024 made their first contribution in #7934
- @faiyazrahmann made their first contribution in #7958
- @gautamrizwani made their first contribution in #7894
- @0jaspahwa made their first contribution in #7960
- @AmariahAK made their first contribution in #7910
- @DavidCarliez made their first contribution in #7952
- @kojah made their first contribution in #7968
- @SashaMIT made their first contribution in #7988
- @hktitof made their first contribution in #7993
- @IslamElsayed made their first contribution in #8003
- @wangjingshuiku made their first contribution in #7957
- @btncwn made their first contribution in #8027
- @XiaoleC05 made their first contribution in #7986
- @H-XX-D made their first contribution in #8038
- @tippexs made their first contribution in #8042
- @amirdaraby made their first contribution in #7267
- @Rohilalala made their first contribution in #7956
- @nfreya made their first contribution in #7921
- @Indra55 made their first contribution in #8067
Full Changelog: v2.11.4...v2.11.6
This release patches more security, security-adjacent, and normal bugs. The FrankenPHP project has collaborated on PHP-adjacent patches, which we are grateful for.
The recent surge of patches is mostly attributed to token predictors. We have had to reject more than 75% of "security" reports because they were AI slop spam (or just lazy/incorrect). Please use LLMs and agents wisely to avoid wasting precious maintainer resources. We have started blocking offending accounts that spam slop reports. Thank you to all who submit responsible reports following our security policy to make the project better. We appreciate that the community deems the Caddy project worthy of contribution to improve the broader ecosystem!
Security-related patches:
- caddyhttp: Normalize Windows backslashes in path matcher (thanks @Vincent550102)
- rewrite: Prevent placeholder re-expansion in injected query (thanks @WhiskerEnt)
- templates: Improved
stripHTMLaction to more reliably remove malformed HTML (thanks to @jmrcsnchz) - caddyhttp: Ignore header fields with underscores to prevent collisions (thanks @Vincent550102 for the report and @dunglas for the patch)
⚠️ These security patches may be breaking if your application relies on the buggy behaviors.
There are also several other various fixes and enhancements by many other contributors. Thank you everyone who participated!
What's Changed
- reverseproxy: further prevent body closes from dial errors by @jameshartig in #7715
- caddytls: Fix client auth (fix #7724) by @mholt in #7727
- chore: deps upgrade by @mohammed90 in #7751
- caddyhttp: omit Last-Modified for unusable mod times by @bb4242 in #7740
- caddytls: fix TLS state races and ECH rotation retry by @broady in #7756
- chore: clean up wording and typo fixes by @steadytao in #7745
- reverseproxy: Add regression test for DialInfo network override by @eyupcanakman in #7758
- caddyauth: add candidate placeholders for rejected identities by @steadytao in #7698
- cmd: support caddy start on IPv6-only hosts by @steadytao in #7744
- caddyfile: preserve implicit TLS issuer semantics by @steadytao in #7743
- reverseproxy: wraps request body to prevent closing if not read by @WeidiDeng in #7719
- caddytls: match IDN SNI in connection policies by @steadytao in #7742
- build(deps): bump the all-updates group across 1 directory with 9 updates by @dependabot[bot] in #7752
- caddyhttp: normalize Windows backslashes in path matcher by @Vincent550102 in #7763
- go.mod: update x/net by @steadytao in #7767
- rewrite: prevent placeholder re-expansion in injected query by @WhiskerEnt in #7761
- perf(replacer): optimize memory allocation for file placeholders by @Jualhosting in #7773
- caddytls: skip idna.ToASCII for pure ASCII SNI values by @sleet0922 in #7770
- encode: prioritize zstd and br over gzip in content negotiation by @Jualhosting in #7772
- httpcaddyfile: fix incorrect error message on duplicate matchers by @Brunotlps in #7780
- Patch for GHSA-vcc4-2c75-vc9v by @jmrcsnchz in #7785
New Contributors
- @jameshartig made their first contribution in #7715
- @bb4242 made their first contribution in #7740
- @broady made their first contribution in #7756
- @eyupcanakman made their first contribution in #7758
- @Vincent550102 made their first contribution in #7763
- @WhiskerEnt made their first contribution in #7761
- @Jualhosting made their first contribution in #7773
- @sleet0922 made their first contribution in #7770
- @Brunotlps made their first contribution in #7780
- @jmrcsnchz made their first contribution in #7785
Full Changelog: v2.11.3...v2.11.4
@ Every self-hosted release, weekly
One Monday email with the week's stable releases across the directory.
More in Web Servers
CaddyManagerCaddyManager is a self-hosted, open-source web UI for managing multiple Caddy2 servers with SQLite/MongoDB, JWT auth, API keys, audit logs, and Prometheus metrics.
docker-webdavSelf-hosted Docker image running an Apache WebDAV server with Basic/Digest auth, multi-user password files and optional SSL.
DufsSelf-hosted Rust file server that shares folders over HTTP or WebDAV with drag-drop uploads, search, per-path access control and HTTPS. Open-source.
FerronOpen-source, self-hosted Rust web server for static sites, PHP and reverse-proxied apps, with automatic TLS, Prometheus/OTLP metrics, and trace IDs in every log line.
hotio/caddySelf-hosted Docker image of Caddy web server with Cloudflare DNS and rate limiting modules, WireGuard VPN support, and automatic HTTPS.
Lighttpdlighttpd is a secure, fast, and flexible open-source web server optimized for high-performance environments, with low memory and CPU usage.
Martin Tile ServerAn open-source, self-hosted vector tile server written in Rust that serves tiles from PostGIS, GeoJSON, PMTiles and MBTiles sources.
NGINXNGINX is a self-hosted, open-source web server that also functions as a reverse proxy, load balancer, content cache, and mail proxy.
nginx-uiSelf-hosted, open-source web UI for managing Nginx: edit configs, deploy Let's Encrypt certs, tail logs, watch stats and manage clusters, with AI and MCP.
OnionShareSelf-hosted, open-source app that runs Tor onion services from your own computer for anonymous file sharing, static website hosting, and private chat rooms.
OrganizrSelf-hosted HTPC and homelab services organizer consolidates web services into one dashboard with tabs. Supports LDAP authentication, mobile responsive design.
Static Web ServerA cross-platform, high-performance and asynchronous web server for static files-serving. ⚡


0 comments