时间:2021-07-01 10:21:17 帮助过:35人阅读
将 Nginx 的 PHP 段改成如下形式
location ~ [^/]\.php(/|$) { #fastcgi_pass remote_php_ip:9000; fastcgi_split_path_info ^(.+?.php)(/.*)$; fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; }
添加 fastcgi_split_path_info ^(.+?.php)(/.*)$;
后即可由 Nginx 设置 PATH_INFO 值。
thinkphp5 上传服务器后 Access denied
标签:file 漏洞 问题 .com cat dev NPU split rem