HTTP mirror directives

mirror (http-mirror)

Creates a background mirror subrequest; its response does not determine the main response.

Formal Syntax & Structure

nginx syntaxnginx
mirror uri | off;

Parameters & Attributes

NameTypeDescription
targetinternal URI | offCreate background subrequests with ignored responses. Use only approved targets and synthetic or sanitized traffic; mirroring can duplicate side effects.

Working Example

Example Snippetnginx
mirror /_sample_copy;
Nginx Reference