Welcome! Log In Create A New Profile

Advanced

location / внутри location /

Slawa Olhovchenkov
January 27, 2021 09:10AM
А возможна ли конструкция типа такой:

location / {
rewrite ....;
rewrite ....;
location ~ /../(..)... {
try_files /$2/$3/$2$3$4_$1.bin @proxy;
}
location / {
try_files /notexist @proxy;
}
}
location @proxy {
}

Ну т.е. смысл в том, что не попадает под маску -- сразу брать с
апстрима, а что под маску попадает -- проверять на диске и если нет --
брать с апстрима.
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

location / внутри location /

Slawa Olhovchenkov January 27, 2021 09:10AM

Re: location / внутри location /

Maxim Dounin January 27, 2021 10:36AM

Re: location / внутри location /

Slawa Olhovchenkov January 27, 2021 10:44AM

Re: location / внутри location /

Maxim Dounin January 27, 2021 11:08AM

Re: location / внутри location /

Slawa Olhovchenkov January 27, 2021 11:16AM

Re: location / внутри location /

Maxim Dounin January 27, 2021 12:36PM

Re: location / внутри location /

Slawa Olhovchenkov January 27, 2021 12:54PM

Re: location / внутри location /

Maxim Dounin January 27, 2021 01:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready