本站支持HTTP3了

系统:Ubuntu 24.04

openssl从3.2版本已经合入QUIC

cd /root
git clone https://github.com/openssl/openssl.git
git clone https://github.com/arut/nginx-dav-ext-module.git
apt install libpcre3-dev libssl-dev libxml2-dev libxslt1-dev libpq-dev libgd-dev libgeoip-dev libgoogle-perftools-dev libcpptest-dev libatomic-ops-dev make build-essential libperl-dev
wget https://openresty.org/download/openresty-1.25.3.2.tar.gz
tar zxvf openresty-1.25.3.2.tar.gz
cd openresty-1.25.3.2
 ./configure --prefix=/opt/openresty --with-debug --add-module=../nginx-dav-ext-module --with-no-pool-patch --with-http_iconv_module --with-http_postgres_module --with-select_module --with-poll_module --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_v3_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_geoip_module --with-stream_ssl_preread_module --with-google_perftools_module --with-cpp_test_module --with-compat --with-pcre --with-pcre-jit --with-libatomic --with-openssl=/root/openssl
gmake
gmake install

 

openresty会和openssl一起编译,openssl3.5已经支持QUIC了,Nginx配置文件再配置一下就好了。

用编译好的curl测试HTTP3

注:现在不显示是因为加了cdn。

阅读剩余
THE END