[NGINX] Module ngx_http_mirror_module

  • zero1320
    (808베이스)
  • zero1320's Avatar 이 글의 작성자
  • Offline
  • ★★ Staff ★★
  • ★★ Staff ★★
  • 탐캣
더보기
24 Aug 2017 16:32 - 24 Aug 2017 16:33 #2698 작성자: zero1320
zero1320 님의 글: [NGINX] Module ngx_http_mirror_module
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: nginx.org/en/docs/http/ngx_http_mirror_module.html

난 너무 멋져
  • osstech
    (열린기술자)
  • osstech's Avatar
  • Offline
  • Junior
  • Junior
더보기
29 Aug 2017 09:40 #2740 작성자: osstech
osstech 님의 답글: [NGINX] Module ngx_http_mirror_module
Nginx 관련 정보 감사합니다.
Time to create page: 0.062 seconds
Powered by Kunena Forum