【Nginx】Nginx 最新社区稳定版-1.26.0-发布

时隔一年多(2023/4/11~2024/4/23),Nginx终于发布了其最新社区稳定版,版本号为:1.26.0

本次发布的1.26.0版本,在1.25.x开发版分支基础上,修复了众多Bug,并且还带来了一些新的实验性的功能,如:

  • 对http/3的支持模块ngx_http_v3_module(默认不构建,需在编译时添加--ngx_http_v3_module参数引入)。

  • per-server基础上的http/2,该指令最早在1.11.0版本上出现。

    | 语法: | http2_body_preread_size size; |
    | 默认值: | http2_body_preread_size 64k; |

    上下文: http, server
  • stream模块里面的virtual servers,该指令最早出现在1.25.5版本。server_name还支持正则表达式。

配置样例:

stream{

server {

server_name example.com www.example.com;

}

}

  • 将stream模块已接受的连接传递(pass)给pass模块配置的任何监听端口。
复制代码
配置样例:
http {
    server {
        listen 8000;

        location / {
            root html;
        }
    }
}

stream {
    server {
        listen 12345 ssl;

        ssl_certificate     domain.crt;
        ssl_certificate_key domain.key;

        pass 127.0.0.1:8000;
    }
}
Nginx-1.26.0社区稳定版官方下载地址:

|-----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| CHANGES-1.26 | nginx-1.26.0 pgp | nginx/Windows-1.26.0 pgp |

相关推荐
若云止水6 小时前
Ubuntu 下 nginx-1.24.0 源码分析 - ngx_init_cycle 函数 - 详解(4)
数据库·nginx·ubuntu
浪九天10 小时前
Nginx系列05(负载均衡、动静分离)
nginx·运维开发·持续部署
m0_7482365817 小时前
Nginx中$http_host、$host、$proxy_host的区别
运维·nginx·http
web1478621072318 小时前
Linux(CentOS)安装 Nginx
linux·nginx·centos
web136885658711 天前
Nginx 负载均衡详解
运维·nginx·负载均衡
Gerald Kwok1 天前
nginx 搭建 IPv6 -> IPv4 反向代理服务器
nginx
秋の水1 天前
Ubuntu 安装 Nginx并配置反向代理
nginx·ubuntu
圣心1 天前
nginx 配置https
运维·nginx·https
小彭爱学习1 天前
Nginx的安装和部署以及Nginx的反向代理与负载均衡
nginx·scala·负载均衡
obboda1 天前
nginx反向代理以及负载均衡(常见案例)
java·nginx·负载均衡