사용가능한 버전: Nginx 1.13.4 이상

영문 설명: mirroring of an original request by creating background mirror subrequests. Responses to mirror subrequests are ignored.

예제:


location / {
    mirror /mirror;
    proxy_pass http://backend;
}
location /mirror {
    internal;
    proxy_pass http://test_backend$request_uri;
}
location / {
    mirror /mirror;
    mirror_request_body off;
    proxy_pass http://backend;
}
location /mirror {
    internal;
    proxy_pass http://log_backend;
    proxy_pass_request_body off;
    proxy_set_header Content-Length "";
    proxy_set_header X-Original-URI $request_uri;
}

 

자세한 사용방법: http://nginx.org/en/docs/http/ngx_http_mirror_module.html