looks good to me
agile6v 于2020年3月14日 周六上午10:33写道:
> Hi all,
>
> Is it necessary to provide a request mirror plugin?
>
> The nginx configuration looks like:
>
> set $var_mirror_disable 1;
>
> location / {
> mirror /mirror_location;
> proxy_pass $upstream_scheme://apisix_backend$upstream
Hi all,
Is it necessary to provide a request mirror plugin?
The nginx configuration looks like:
set $var_mirror_disable 1;
location / {
mirror /mirror_location;
proxy_pass $upstream_scheme://apisix_backend$upstream_uri;
}
location /mirror_location {
if ($var_mirror_disable) {
# HG changeset patch
# User agile6v
# Date 1584110606 -28800
# Fri Mar 13 22:43:26 2020 +0800
# Node ID e4a0277cab79865fde6fefeed9374154449e6948
# Parent 4eb606b4a5b521603c23223cf8863f3999df743c
mirror directive supports variable.
diff -r 4eb606b4a5b5 -r e4a0277cab79 src/http/modules/ngx_ht