[NGINX] Module ngx_http_mirror_module
조회 2,359 · 댓글 1
The ngx_http_mirror_module module (1.13.4) implements mirroring of an original request by creating background mirror subrequests. Responses to mirror subrequests are ignored.
Syntax: mirror uri | off;
Default:
mirror off;
Context: http, server, location
Syntax: mirror_request_body on | off;
Default:
mirror_request_body on;
Context: http, server, location
Examples)
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;
}
Page: http://nginx.org/en/docs/http/ngx_http_mirror_module.html
Syntax: mirror uri | off;
Default:
mirror off;
Context: http, server, location
Syntax: mirror_request_body on | off;
Default:
mirror_request_body on;
Context: http, server, location
Examples)
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;
}
Page: http://nginx.org/en/docs/http/ngx_http_mirror_module.html
Nginx 관련 정보 감사합니다.
로그인 후 답글을 남길 수 있습니다.