当前位置: 首页 > news >正文

Nginx Unit 1.27.0 发布

目录

介绍

更新内容

将 HTTP 请求重定向到 HTTPS

为纯路径 URI 提供可配置的文件名

完整的更新日志

其他

平台更新


介绍

Nginx Unit 是一个动态应用服务器,能够与 Nginx Plus 和 Nginx 开源版并行或独立运行。Nginx Unit 支持 RESTful JSON API,可以在不中断服务的情况下更改配置,并可运行基于多种语言和架构的应用。Nginx Unit 生来就是为满足分布式应用的需求而设计的,可为您的服务网格奠定坚实的基础。

更新内容

Nginx Unit 1.27.0 正式发布,更新内容如下:

将 HTTP 请求重定向到 HTTPS

自从在 Unit 中加入了 TLS 支持和证书管理,就被要求简化将纯文本 HTTP 请求重定向到启用 TLS 的监听器。现在可以通过配置路由 action 的 location 值来实现这一功能。事实上,现在有一个新的变量, $request_uri,它包含了原始 URI 的路径和查询部分,完整的例子如下:

{"listeners": {"*:443": {"tls": {"certificate": "example.com"},"pass": "routes"},"*:80": {"pass": "routes"}},"routes": [{"match": {"scheme": "http"},"action": {"return": 301,"location": "<https://$>{host}${request_uri}"}}
}

这种配置使 Unit 能够监听纯文本和启用 TLS 的端口,确保在纯文本端口收到的任何请求都会通知浏览器在启用 TLS 的端口重新提交。

为纯路径 URI 提供可配置的文件名

现在你可以通过为路由 action 指定索引来使用不同的默认文件名。下面提供了一个完整的例子:

"routes": [{"match": {"uri": "/cms/*"},"action": {"share": "/var/cms$uri","index": "default.html"}},{"action": {"share": "/var/www$uri"}}
]

这个配置使 Unit 能够为指向 /cms/* 的纯路径 URI 提供 default.html,为所有其他纯路径的 URI 提供默认的 index.html 文件名。

完整的更新日志

这个版本还包括许多错误修复。完整的更新日志可以在下面看到。

*) Feature: ability to specify a custom index file name when servingstatic files.*) Feature: variables support in the "location" option of the "return"action.*) Feature: support empty strings in the "location" option of the"return" action.*) Feature: added a new variable, $request_uri, that includes both thepath and the query parts as per RFC 3986, sections 3-4.*) Feature: Ruby Rack environment parameter "SCRIPT_NAME" support.*) Feature: compatibility with GCC 12.*) Bugfix: Ruby Sinatra applications don't work without custom logging.*) Bugfix: the controller process could crash when a chain of more thanfour certificates was uploaded.*) Bugfix: some Perl applications failed to process the request body,notably with Plack.*) Bugfix: some Spring Boot applications failed to start, notably withGrails.*) Bugfix: incorrect Python protocol auto detection (ASGI or WSGI) fornative callable object, notably with Falcon.*) Bugfix: ECMAScript modules did not work with the recent Node.jsversions.

其他

  • 与 GCC 12 兼容
  • 错误修正:一些 Spring Boot 应用程序无法启动
  • 错误修正:Python 协议的自动检测不正确
  • 错误修正:ECMAScript 模块不能与最近的 Node.js 版本一起使用

平台更新

官方软件包现在可用于以下 Linux 发行版:

  • Fedora 36
  • RHEL 9
  • Ubuntu 22.04

Docker 镜像已经更新,以使用最新的语言版本:

  • Go 1.18
  • PHP 8.1
  • Ruby 3.1

更多资讯请查看该链接:unit.nginx.org/news/2022/u…

原文链接:Nginx Unit 1.27.0 发布 - 掘金 (juejin.cn)

http://www.lryc.cn/news/266516.html

相关文章:

  • 【影像组学入门百问】#32—#34
  • YOLOv5代码解析——yolo.py
  • 4种feature classification在代码的实现上是怎么样的?Linear / MLP / CNN / Attention-Based Heads
  • 最新Unity DOTS Physics物理引擎碰撞事件处理
  • springboot集成websocket全全全!!!
  • SpringMVC:整合 SSM 中篇
  • oracle即时客户端(Instant Client)安装与配置
  • POP3协议详解
  • 电子病历编辑器源码,提供电子病历在线制作、管理和使用的一体化电子病历解决方案
  • WT2605C高品质音频蓝牙语音芯片:外接功放实现双声道DAC输出的优势
  • IntelliJ IDEA 2023.3 最新版如何如何配置?IntelliJ IDEA 2023.3 最新版试用方法
  • 如何查看内存卡使用记录-查看的设备有:U盘、移动硬盘、MP3、SD卡等-供大家学习研究参考
  • 九、W5100S/W5500+RP2040之MicroPython开发<HTTPOneNET示例>
  • 在 Laravel 中,清空缓存大全
  • 【贪心】单源最短路径Python实现
  • Spark Shell的简单使用
  • Springsecurty【2】认证连接MySQL
  • .Net 访问电子邮箱-LumiSoft.Net,好用
  • 谷粒商城-商品服务-新增商品功能开发(商品图片无法展示问题没有解决)
  • Open3D 点云数据处理基础(Python版)
  • 使用vue-qr,报错in ./node_modules/vue-qr/dist/vue-qr.js
  • 百川2大模型微调问题解决
  • MySQL的事务-原子性
  • D3839|完全背包
  • Java之Synchronized与锁升级
  • kitex出现:open conf/test/conf.yaml: no such file or directory
  • sql server多表查询
  • 如何利用PPT绘图并导出清晰图片
  • 1.倒排索引 2.逻辑斯提回归算法
  • Kafka消费者组