
宝塔windows系统 thinkphp访问404 或其它php页面都是404 参考以下解决方案
nginx下的php配置文件

location ~ \.php(.*)$ {
    #try_files $uri =404;#注释这行
	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;
}将 try_files 这行注释掉就可以了
配置文件在宝塔安装目录下的 \nginx\conf\php
或者查看nginx中的网站配置对应的路径

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。