时间:2021-07-01 10:21:17 帮助过:25人阅读
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_split_path_info ^(.+\.php)(/?.*)$;
#fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
配置文件
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_split_path_info ^(.+\.php)(/?.*)$;
#fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
nginx的话,可以把当前的配置文件整个贴出来。这个No input file specified
其实在客户端那边报的是404,然后你root 指向哪个文件夹,然后那个文件夹里面是否有你想访问的文件。
请确保你的有正确的
root /path/to/web #这里是你的服务器根目录