根据nginx
文件
在具有proxy_pass的位置之前定义了以下位置,它与静态下的js和css文件的请求相匹配。此位置块用于您希望在站点中允许的不同扩展名。
location ~* .(js|css|png|jpg|jpeg|gif|ico)$ {
limit_req zone=static burst=60 nodelay;
log_not_found off;
}
</code>
或者,您可以使用此我认为这应该工作正常
location ~ ^/(img|logos|js|plugin)/ {
root /project_root_path;
limit_req zone=static burst=60 nodelay;
}
</code>