Nginx正在QUIC分支上开发基于QUIC协议版本(所谓的HTTP3)的nginx,并且最近出了尝鲜版。
下面介绍部署方法。
BoringSSL 是由谷歌开发,从 OpenSSL 中分离的一个分支。
## 创建目录 $ mkdir ~/NginxWithQuic $ cd ~/NginxWithQuic ## 下载代码 $ git clone https://github.com/google/boringssl.git ## 编译代码 $ cd boringssl $ mkdir build $ cd build $ cmake .. $ make也可以去直接下载压缩包:nginx-quic-quic.tar.gz
进入目录 /usr/local/nginx 自行修改配置、启动服务。
/usr/local/nginx:
➜ tree /usr/local/nginx nginx ├── conf │ ├── fastcgi.conf │ ├── fastcgi.conf.default │ ├── fastcgi_params │ ├── fastcgi_params.default │ ├── koi-utf │ ├── koi-win │ ├── mime.types │ ├── mime.types.default │ ├── nginx.conf │ ├── nginx.conf.default │ ├── scgi_params │ ├── scgi_params.default │ ├── uwsgi_params │ ├── uwsgi_params.default │ └── win-utf ├── html │ ├── 50x.html │ └── index.html ├── logs └── sbin └── nginx 4 directories, 18 files本文由 qingchuwudi 译制或原创,除非另有声明,在不与原著版权冲突的前提下,本作品采用署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 进行许可。
