centos 7 安装 nginx+php 访问域名XXX/p.php出现 “No input file specified.” 的解决办法

我* 哦,前提

配置额外的nginx.conf用于开启子域名;
配置子域名文件夹中的.conf

把index 的index.php 放在最后就好了,曰哦

【尴尬又不失礼貌的微笑】

server {
        listen       80;
        server_name  blog.****.com;
#        location / {
            root         /usr/share/nginx/html/blog;
            index        index.html index.htm index.php;
            error_page   500 502 503 504  /50x.html;
            include      enable-php.conf;

关于访问域名XXX/p.php,下载php文件,

我这里是添加了include enable-php.conf;完美解决!
与网上配置fascig和查看9000端口不同。
你们可以尝试注释这行,就能发现登录域名变成了下载文件了。

猜你喜欢

转载自blog.csdn.net/ptmicky/article/details/89375336