http://www.nginx.cn/115.html

 NGINX location 配置参考:http://www.cnblogs.com/zlingh/p/6288994.html

https://seonoco.com/nginx-prohibit-access-to-the-directory-or-file

#请求 nginx.com/static/1.html,请求static目录下的文件请求,区分大小写
location ~ /static/ { root /webroot/static/; }
#请求 nginx.com/static/aaa/1.html,请求static目录下的递归子目录的文件请求,区分大小写
location ~ /static { root /webroot/static/; }


 

相关文章:

  • 2021-11-28
  • 2021-11-20
  • 2021-08-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
相关资源
相似解决方案