Hi Roman Arutyunyan,
Yes. If mirror directive supports a variable and its behavior should be different from static mirror.
That mirror directive support variables can dynamically decide whether they need to be turned on and the configuration will be more concise.
If it is described clearly in the document, it should also be easy to understand.
Thanks,
agile6v
------------------ Original ------------------
From: "Roman Arutyunyan";<arut@nginx.com>;
Send time: Tuesday, Mar 31, 2020 2:02 PM
To: "nginx-devel"<nginx-devel@nginx.org>;
Cc: "dev"<dev@apisix.apache.org>;
Subject: Re: [PATCH] Mirror directive supports variable
On Mon, Mar 30, 2020 at 03:36:11PM +0300, Roman Arutyunyan wrote:
> Hello,
>
> On Fri, Mar 13, 2020 at 11:29:51PM +0800, 一江春水,向东流 wrote:
> > # HG changeset patch
> > # User agile6v <liuwei19@xiaomi.com>
> > # Date 1584110606 -28800
> > # Fri Mar 13 22:43:26 2020 +0800
> > # Node ID e4a0277cab79865fde6fefeed9374154449e6948
> > # Parent 4eb606b4a5b521603c23223cf8863f3999df743c
> > mirror directive supports variable.
Also, what is the reason why you need variables in the mirror directive?
You can do the same thing by creating a static mirror and using rewrite to
change uri.
[..]
--
Roman Arutyunyan_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel