赞
踩
找到宝塔的软件安装目录,依次进入BtSoft\nginx\conf\php,找到你需要修改的php版本,编辑,然后重启nginx
location ~ \.php(.*)$ {
#try_files $uri =404; 就是把这一行注释掉,重启php就行了
fastcgi_pass 127.0.0.1:20074;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。