присоединяюсь к вопросу:

почему бы не сделать if нормальным? чтобы без артефактов… и немного мощнее

нам вот тоже приходится делать по несколько map, чтобы логику чуть более 
сложную построить…
и это ужас

> On 29 Sep 2020, at 19:29, Sergey Kandaurov <[email protected]> wrote:
> 
> 
>> On 29 Sep 2020, at 17:12, Ilya Evseev <[email protected]> wrote:
>> 
>> Имеется nginx 1.19.2 со следующей настройкой:
>> 
>>   server {
>>       location / {
>>           if ($http_user_agent ~ "TestAgent") { }
>>           try_files $uri $uri/ /index.html;
>>       }
>>   }
>> 
>> Почему попадание в if меняет логику работы последующего try_files?
> 
> https://wiki.nginx.org/IfIsEvil
> 
> -- 
> Sergey Kandaurov
> 
> _______________________________________________
> nginx-ru mailing list
> [email protected]
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Ответить