Quantcast
Channel: Nginx Forum - Nginx Mailing List - Russian
Viewing all articles
Browse latest Browse all 3102

location / внутри location / (7 replies)

$
0
0
А возможна ли конструкция типа такой:

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

Viewing all articles
Browse latest Browse all 3102

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>