Nginx 提示No input file specified.

WBOY
Release: 2016-06-06 20:21:06
Original
1353 people have browsed it

配置文件

<code>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;
        }
</code>
Copy after login
Copy after login

回复内容:

配置文件

<code>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;
        }
</code>
Copy after login
Copy after login

nginx的话,可以把当前的配置文件整个贴出来。这个No input file specified其实在客户端那边报的是404,然后你root 指向哪个文件夹,然后那个文件夹里面是否有你想访问的文件。

请确保你的有正确的

<code>root /path/to/web #这里是你的服务器根目录</code>
Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template