nginx/src
Andrew Clayton 8ea6eb5108 Uwsgi: ensure HTTP_HOST is set to the requested target host.
Previously, the HTTP_HOST environment variable was constructed from the
Host request header field, which doesn't work well with HTTP/2 and
HTTP/3 where Host may be supplanted by the ":authority" pseudo-header
field per RFC 9110, section 7.2. Also, it might give an incorrect
HTTP_HOST value from HTTP/1.x requests given in the absolute form, in
which case the Host header must be ignored by the server, per RFC 9112,
section 3.2.2.

The fix is to redefine the HTTP_HOST default from a protocol-specific
value given in the $host variable. This will now use the Host request
header field, ":authority" pseudo-header field, or request line target
URI depending on request HTTP version.

Also the CGI specification (RFC 3875, 4.1.18) notes

  The server SHOULD set meta-variables specific to the protocol and
  scheme for the request. Interpretation of protocol-specific
  variables depends on the protocol version in SERVER_PROTOCOL.
2026-01-15 23:04:38 +00:00
..
core Version bump. 2025-12-16 14:22:33 -07:00
event SSL: logging level of the "ech_required" TLS alert. 2025-12-17 13:49:06 +04:00
http Uwsgi: ensure HTTP_HOST is set to the requested target host. 2026-01-15 23:04:38 +00:00
mail Mail: xtext encoding (RFC 3461) in XCLIENT LOGIN. 2025-09-26 17:04:20 +04:00
misc
os Win32: fixed C4319 warning with MSVC 2022 x86. 2025-12-24 11:41:43 -07:00
stream Add basic ECH shared-mode via OpenSSL. 2025-12-01 16:33:40 +04:00