求助大神,框架tp3.2.3关于nginx的url问题

浏览:699 发布日期:2018/03/27 分类:求助交流
服务器是nginx,我按官方文档去掉index.php没问题,但是。。。
nginx配置如下:         server{
                    listen 80;
                    server_name newapp.risingwine.com;
                    root /home/www/app;
                    location / {
                           index index.php;
                           
                           if (!-e $request_filename) {
                               rewrite  ^(.*)$  /index.php?s=$1  last;
                               break;
                           }
                    }
                    error_page      500 502 503 504 /50x.html;
                    location = /50x.html {
                            root    html;
                    }

                    location ~ \.php$ {
                            fastcgi_pass    127.0.0.1:9000;
                            fastcgi_index   index.php;
                            fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
                            include         fastcgi_params;
                    }


         }
但是我要访问http://xxx.com/index.php/help这种带有index.php的会报错:无法加载模块:Index.php,怎么破!!求助大神
最佳答案
评论() 相关
后面还有条评论,点击查看>>