2017年8月8日星期二

Nginx 1.13.4 发布,新增 ngx_http_mirror_module 模块


Linuxeden 开源社区 --Nginx
Nginx

Nginx 1.13.4 已发布,有以下的更新:

1.13.4 中的 ngx_http_mirror_module 模块通过创建后台镜像子请求实现了原始请求的镜像。镜像子请求的输出会被忽略。

配置示例

location / {
    mirror /mirror;
    proxy_pass http://backend;
}

location /mirror {
    internal;
    proxy_pass http://test_backend$request_uri;
}

Directives

Syntax: mirror uri | off;
Default:
mirror off;
Context: httpserverlocation

1.13.4 更新内容:

  • Feature: the ngx_http_mirror_module.
  • Bugfix: client connections might be dropped during configuration testing when using the “reuseport” parameter of the “listen” directive on Linux.
  • Bugfix: request body might not be available in subrequests if it was saved to a file and proxying was used.
  • Bugfix: cleaning cache based on the “max_size” parameter did not work on Windows.
  • Bugfix: any shared memory allocation required 4096 bytes on Windows.
  • Bugfix: nginx worker might be terminated abnormally when using the “zone” directive inside the “upstream” block on Windows.

下载地址

转自 http://ift.tt/2vhMTB9

The post Nginx 1.13.4 发布,新增 ngx_http_mirror_module 模块 appeared first on Linuxeden开源社区.

http://ift.tt/2wryu45

没有评论:

发表评论