^/c/.+\.(min\.js|js|php|cgi|pl|phtml)(?<!index\.php|d\.php|t\.js|app/project/_resource/s/|app/project/ вот_тут_любое_имя_каталога /js/с\.min\.js)
location ~ ^/c/(?!index\.php|d\.php|t\.js|app/project/_resource/s/|app/project/[^/]+/js/c\.min\.js) {
return 403;
}
location ^~ /c/ {
return 403;
location ~ ^/c/(index|d)\.php {
fastcgi_pass ...;
include fastcgi_params;
}
location = /c/t.js { }
location /c/app/project/_resource/s/ { }
location ~ ^/c/app/project/[^/]+/js/c\.min\.js { }
}