Hi,
On Thu, Dec 06, 2018 at 04:01:36PM +0300, Roman Arutyunyan wrote:
[..]
> This should solve the issue:
>
> location ~ /test/($<name>regular|expression)$ {
> proxy_pass http://127.0.0.1:8010/test/$name;
Sorry, the right syntax is of course this:
location ~ /test/(?<name>regular|expression)$ {
proxy_pass http://127.0.0.1:8010/test/$name;
> > proxy_cache test;
> > proxy_cache_background_update on;
> > proxy_cache_use_stale updating;
> > proxy_cache_valid 10s;
> > }
> > }
[..]
--
Roman Arutyunyan
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx