[Pkg-nginx-maintainers] Bug#1126960: Bug#1126960: nginx: proxy_params should use $host instead of $http_host
Jérémy Lal
kapouer at melix.org
Wed Feb 4 17:49:58 GMT 2026
Le mer. 4 févr. 2026 à 18:09, Anthony Bourguignon <debian+bts at toniob.net> a
écrit :
> Package: nginx
> Severity: normal
> X-Debbugs-Cc: debian+bts at toniob.net
>
> Dear Maintainer,
>
> The file proxy_params should use the variable $host instead of
> $http_host for the header Host. As written in the nginx documentation :
>
> However, if this field is not present in a client request header then
> nothing will be passed. In such a case it is better to use the $host
> variable - its value equals the server name in the “Host” request header
> field or the primary server name if this field is not present
>
> Currently, HTTP/3 is broken with a HTTP/1.1 backend. As there is no Host
> header in HTTP/3 (the name is sent during the negociation and not as a
> header), the backend is refusing the request.
>
> Changing $http_host with $host resolves the issue, and is more
> futureproof.
>
Seconded. I had the same issue and the same way to solve it.
Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nginx-maintainers/attachments/20260204/5ff2382c/attachment.htm>
More information about the Pkg-nginx-maintainers
mailing list