fix for docs issue 11432 (#11446)
Co-authored-by: longwuyuan <longwuyuan@gmail.com>
This commit is contained in:
parent
ed22643d86
commit
1651900d8a
1 changed files with 2 additions and 2 deletions
|
@ -935,7 +935,7 @@ Enables a request to be mirrored to a mirror backend. Responses by mirror backen
|
|||
The mirror backend can be set by applying:
|
||||
|
||||
```yaml
|
||||
nginx.ingress.kubernetes.io/mirror-target: https://test.env.com/$request_uri
|
||||
nginx.ingress.kubernetes.io/mirror-target: https://test.env.com$request_uri
|
||||
```
|
||||
|
||||
By default the request-body is sent to the mirror backend, but can be turned off by applying:
|
||||
|
@ -947,7 +947,7 @@ nginx.ingress.kubernetes.io/mirror-request-body: "off"
|
|||
Also by default header Host for mirrored requests will be set the same as a host part of uri in the "mirror-target" annotation. You can override it by "mirror-host" annotation:
|
||||
|
||||
```yaml
|
||||
nginx.ingress.kubernetes.io/mirror-target: https://1.2.3.4/$request_uri
|
||||
nginx.ingress.kubernetes.io/mirror-target: https://1.2.3.4$request_uri
|
||||
nginx.ingress.kubernetes.io/mirror-host: "test.env.com"
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue