Thanks for the notes and links.
I just spent hours searching around for a fix to this problem. Suddenly when updating to 26.1 today all of our reverse proxy sites were getting HTTP 421 Misdirected Request from upstream Apache instances. (Adding my comment as no search results were coming up specifically for HTTP 421.)
Found this: https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#https
Using value "{hostport}" for the Host header in all our handlers resolved this for us. (One of our sites doesn't use port 443 making "{hostport}" instead of "{host}" necessary.)
Always great when an important unannounced change occurs. (Thanks Caddy..!)
I just spent hours searching around for a fix to this problem. Suddenly when updating to 26.1 today all of our reverse proxy sites were getting HTTP 421 Misdirected Request from upstream Apache instances. (Adding my comment as no search results were coming up specifically for HTTP 421.)
Found this: https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#https
Using value "{hostport}" for the Host header in all our handlers resolved this for us. (One of our sites doesn't use port 443 making "{hostport}" instead of "{host}" necessary.)
Always great when an important unannounced change occurs. (Thanks Caddy..!)
"