Recommended NGINX configuration errors when using HTTP/3 due to missing $http_host variable #7146
Replies: 2 comments
-
Please note this response was created using generative AI leveraging previously available information from the repository. This information may be helpful however it is our strong recommendation that you carefully consider the information before blindly applying it. The issue you're encountering with HTTP/3 in NGINX, where the Switching from Differences between
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
When using HTTP/3 in NGINX with:
The recommended default configuration in the documentation fails with the following error:
The HTTP/3 protocol does not use the
Host
header and instead uses the:authority
pseudo-header to identify the host name which causes the$http_host
variable to be empty and then the following commands return invalid results:When using HTTP/3, NGINX correctly sets the
$host
variable to the hostname when means that this can be fixed by changing$http_host
to$host
which I have done for my own setup. But I do not understand if the differences between$http_host
and$host
would cause other issues that I am not aware of if it was changed.Versions:
server.conf:
snippets/authelia-location.conf:
snippets/proxy.conf:
snippets/authelia-authrequest.conf
Authelia Logs:
Beta Was this translation helpful? Give feedback.
All reactions