我需要复制/镜像连接到服务器/资源的流量。
我的意思是,我有服务器A、B和N (nginx)作为webserver。
所有的流量开始到N/资源->重定向到A和B。
有可能吗?
发布于 2017-08-29 20:19:12
Nginx现在有一个http镜像模块。文档在https://nginx.org/en/docs/http/ngx_http_镜像_module.html
文档中的示例配置:
location / {
mirror /mirror;
proxy_pass http://backend;
}
location /mirror {
internal;
proxy_pass http://test_backend$request_uri;
}发布于 2017-11-01 21:17:30
以下是nginx (1.13.4)的新特性:http://nginx.org/en/docs/http/ngx_http_镜像_module.html#mirror
ngx_http_mirror_module模块(1.13.4)通过创建背景镜像子请求来实现原始请求的镜像。对镜像子请求的响应被忽略。
发布于 2013-06-07 18:51:50
基于他们的自述文件,看起来GOR可以帮助你解决问题。
我从来没有用过它,这周只是偶然发现的,所以祝你好运!
https://serverfault.com/questions/513859
复制相似问题