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
| Name | Type | Description |
|---|---|---|
| target | internal URI | off | Create 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;