【求助】模板不存在:index.php,内页访问正常。域名/index访问也正常

浏览:2517 发布日期:2018/03/17 分类:求助交流 关键字: 模板不存在 内页访问正常
Nginx 路径重写正常:server {
        listen 80;
        root /var/www/html;
        server_name xxx.cn;
        index index.php index.html index.htm;

        location / {
                if (!-e $request_filename) {
                        rewrite  ^(.*)$ /index.php?s=/$1  last;
                        break;
                }
        }
        location ~ \.php {
                root     /var/www/html;
                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;
        }
}
页面访问提示:模块不存在:index.php
注意:提示的是index.php不存在,不是index,域名/index访问正常,直接访问域名就提示index.php不存在。

找不到问题出在哪里,求助!
最佳答案
评论( 相关
后面还有条评论,点击查看>>