This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3617|Reply: 3

[Web] Nginx enables the HTTP/3 protocol based on QUIC

[Copy link]
Posted on 2024-7-10 17:57:18 | | | |
Since version 1.25.0, the main branch of Nginx has supported HTTP/3 (based on the QUIC protocol), but still shows experimental features.

QUIC protocol HTTP/3 is officially released
https://www.itsvse.com/thread-10330-1-1.html


this paperInstall nginx-1.26.1 based on Rocky Linux release 9.3and enable HTTP/3 protocol support at the same time.

It is recommended to build nginx using an SSL library that provides QUIC support, such as BoringSSL, LibreSSL, or QuicTLS.

First, install the dependency package like this:



If the installation of ninja-build and libunwind-devel fails, please refer to the following:

Rocky Linux 9 package not found: No match for argument: xxx
https://www.itsvse.com/thread-10789-1-1.html


Compile boringssl

The command is as follows:

As shown below:



Compile and install nginx

The command is as follows:

Note: boringssl/include needs to be followed by the -x c parameter, and ./configure needs to add --with-cc=c++ (using the C++ compiler), otherwise the error will be as follows:


./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.


Question reference:

The hyperlink login is visible.
The hyperlink login is visible.

Create soft links

nginx.conf configuration file is modified as follows:

Start the nginx service (omitted), configure DNS resolution (omitted), and test as follows:

https://http3check.net/?host=https%3A%2F%2Fattachtest.itsvse.com%2F



The HTTPS security protocol version supports the detection tool
https://www.itsvse.com/thread-10688-1-1.html




Reference articles:


The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.

(End)




Previous:Rocky Linux 9 package not found: No match for argument: xxx
Next:ASP.NET Core exception Headers are read-only, response has already started
 Landlord| Posted on 2024-7-17 21:10:37 |
nginx compilation configuration:https://nginx.org/en/docs/configure.html

If you want to use the cache, you need to delete --without-http-cache
 Landlord| Posted on 2024-7-18 09:06:39 |
For the issues that you might encounter with proxy_pass, the following are modified:


There can be multiple add_header instructions. It should beOnlyadd_header no instructions are defined at the current level, they are inherited from the previous configuration level.

This means that if the current scope is configured with the add_header command, it will not refer to the command of the higher level, but will only use the command of the current scope.

Reference:The hyperlink login is visible.


 Landlord| Posted on 2024-7-18 09:17:31 |
Use curl to check the HTTP/3 support of the test site
https://www.itsvse.com/thread-10794-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com