Welcome! Log In Create A New Profile

Advanced

Re: Почему пустой if ломает работу try files?

Sergey Kandaurov
September 29, 2020 12:30PM
> On 29 Sep 2020, at 17:12, Ilya Evseev <nginx-forum@forum.nginx.org> 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
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Re: Почему пустой if ломает работу try files?

Sergey Kandaurov September 29, 2020 12:30PM

Re: Почему пустой if ломает работу try files?

Alexey Galygin September 29, 2020 12:32PM

Re: Почему пустой if ломает работу try files?

fox September 29, 2020 12:50PM

Re: Почему пустой if ломает работу try files?

Alexey Galygin September 29, 2020 01:42PM

Re: Почему пустой if ломает работу try files?

Илья Шипицин September 29, 2020 02:50PM

Re: Почему пустой if ломает работу try files?

Alexey Galygin September 29, 2020 03:26PM

Re: Почему пустой if ломает работу try files?

fox September 29, 2020 10:16PM

Re: Почему пустой if ломает работу try files?

Alexey Galygin September 30, 2020 01:46AM

Re: Почему пустой if ломает работу try files?

Илья Шипицин September 30, 2020 01:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready