慢慢赚钱博客

8月 18 2017

 替代tcpcopy的nginx模块 Module ngx_http_mirror_module

官方:http://nginx.org/en/docs/http/ngx_http_mirror_module.html

例子:

Example Configuration

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

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

Written by admin