测试站点是:test.geeksky.org
各大浏览器均显示是 HTTP/2,各个 HTTP/3 测试工具均显示:无法建立 QUIC 连接。
系统防火墙已经关闭,安全组全部放行。
以下是操作全过程,希望大神能够指点迷津,不胜感激:
wget https://nginx.org/download/nginx-1.16.1.tar.gz tar zxf nginx-1.16.1.tar.gz git clone --recursive https://github.com/cloudflare/quiche cd nginx-1.16.1 patch -p01 < /root/quiche/extras/nginx/nginx-1.16.patch ./configure --prefix=/usr/local/nginx --user=nobody --group=nobody --with-http_ssl_module --with-http_v2_module --with-http_v3_module --with-openssl=/root/quiche/deps/boringssl --with-quiche=/root/quiche && make && make install
下面是 NGINX 配置文件:
worker_processes 1; events { use epoll; worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; gzip on; gzip_types text/css application/javascript image/jpeg image/gif image/png image/webp; server { listen 443 quic reuseport; listen 443 ssl http2; server_name test.geeksky.org; add_header alt-svc 'h3-25=":443"; ma=86400'; ssl_certificate /usr/local/nginx/ssl/www.crt; ssl_certificate_key /usr/local/nginx/ssl/www.key; ssl_protocols TLSv1.2 TLSv1.3; location / { root html; index index.html; } } }
1
Nangle 2020-05-23 13:34:42 +08:00 via iPhone 1
看下我这篇文章,看对你有用不。
https://www.nange.cn/quic-and-http3-for-nginx.html |