v2.6.2

caddyserver/caddyv2.6.2Oct 13, 2022by github-actions[bot]

AI Summary

A release focused on bug fixes and minor enhancements, including path normalization improvements and FastCGI fixes.

Key Highlights

  • Remote IP prefix placeholders added.
  • Windows executable location handling improved.
  • Fix for FastCGI redirect using the original URI path.
  • Invalid file paths now treated as NotFound in fileserver.

New Features

  • Added `time_local` option to logging to use local time instead of UTC.
  • Added `working_directory` global placeholder.
  • Added `multi` dynamic upstreams source for aggregating results.

Full Release Notes

This release brings a number of bug fixes and minor enhancements. All users should upgrade after testing and verifying their setups. Thank you to all who contributed!

If you are coming from < 2.6, please see [the 2.6 release notes](https://github.com/caddyserver/caddy/releases/tag/v2.6.0) because a lot is new!

## Changelog
* 037dc23c admin: Use replacer on listen addresses (#5071)
* 498f32ba caddyconfig: Implement retries into HTTPLoader (#5077)
* 9873ff99 caddyhttp: Remote IP prefix placeholders
* 61822f12 caddyhttp: replace placeholders in map defaults (#5081)
* e07a2672 caddytest: Revise sleep durations
* 253d97c9 core: Chdir to executable location on Windows (#5115)
* ab720fb7 core: Fix ListenQUIC listener key conflict
* e3e8aabb core: Refactor and improve listener logic (#5089)
* e4fac129 core: Set version manually via CustomVersion (#5072)
* f7c1a51e fastcgi: Redirect using original URI path (fix #5073)
* 2be56c52 fileserver: Treat invalid file path as NotFound (#5099)
* b1d04f5b fileserver: better dark mode visited link contrast (#5105)
* 33f60da9 fileserver: stop listing dir when request context is cancelled (#5131)
* 2153a81e forwardauth: Canonicalize header fields (fix #5038) (#5097)
* fe91de67 go.mod: Upgrade select dependencies
* 70419700 headers: Support repeated WriteHeader if 1xx (fix #5074)
* d46ba2e2 httpcaddyfile: Fix `metrics` global option parsing (#5126)
* 6bad878a httpcaddyfile: Improve detection of indistinguishable TLS automation policies (#5120)
* 2808de1e httpcaddyfile: Skip `automate` when `auto_https off` is specified (#5110)
* 3e1fd2a8 httpcaddyfile: Wrap site block in subroute if host matcher used (#5130)
* 9e1d964b logging: Add `time_local` option to use local time instead of UTC (#5108)
* 01e192ed logging: Better `console` encoder defaults (#5109)
* 99ffe933 logging: Fix `skip_hosts` with wildcards (#5102)
* ea58d519 logging: Perform filtering on arrays of strings (where possible) (#5101)
* 5e52bbb1 map: Remove infinite recursion check (#5094)
* b4e28af9 replacer: working directory global placeholder (#5127)
* e2991eb0 reverseproxy: On 103 don't delete own headers (#5091)
* 2a8c458f reverseproxy: Parse humanized byte size (fix #5095)
* d0556929 reverseproxy: fix upstream scheme handling in command (#5088)
* 013b5103 rewrite: Only trim prefix if matched

## New Contributors
* @lemmi made their first contribution in https://github.com/caddyserver/caddy/pull/5088
* @willnorris made their first contribution in https://github.com/caddyserver/caddy/pull/5081
* @yroc92 made their first contribution in https://github.com/caddyserver/caddy/pull/5071
* @iliana made their first contribution in https://github.com/caddyserver/caddy/pull/5105
* @TobiX made their first contribution in https://github.com/caddyserver/caddy/pull/5106
* @likev made their first contribution in https://github.com/caddyserver/caddy/pull/5099
* @cherouvim made their first contribution in https://github.com/caddyserver/caddy/pull/5121

**Full Changelog**: https://github.com/caddyserver/caddy/compare/v2.6.1...v2.6.2