解决办法:修改nginx对php的处理
location ~ /(?<ver>v[1-9])/.*\.php { return 404; } location ~ /(?<ver>v[1-9])/.* { try_files $uri $uri/ /index.php?$args; }
原创文章,转载请注明:转载自Web开发笔记 | nginx可遍历下载php文件
本文链接地址:https://www.magentonotes.com/nginx-config-location-php-file-download.html
Comments on this entry are closed.