Nginx location block - only match actual files Nginx location block - only match actual files nginx nginx

Nginx location block - only match actual files


Try exact matched location =/

location  =/site_root/web/assets/dynamic/file.uk.js { fast_cgi ...}

Exact matching pattern (=/) has always higher priority than regexp location. See docs wiki page