Nginx

Nginx 새로운 Module. ngx_http_mirror_module

혀뇽뇽이·2017년 8월 24일·조회 7,555

사용가능한 버전: 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

 

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.