下一节课程: ThinkPHP 控制器(二):URL 模式(2456次播放)

5 秒后自动播放下一节
  重新观看
章节
笔记
提问
课件
反馈
捐赠
  • 推荐课程
  • 评论
  • 问答
  • 笔记
  • 课件下载
tom_cheng

tom_cheng

极客学院的不推荐

3年前    添加回复 0

回复

我怎么没有办法访问这个list方法呢?

[最新 谁在乎昵称呢 的回答]server {         listen 80;         charset utf-8;         root D:/data/tp3/;         index   index.php index.html index.htm;         server_name tp5.com;         location / {         try_files $uri $uri/ /index.php;         if (!-e $request_filename) {         rewrite ^(.*)$ /index.php?s=$1 last;         break;         }         }         location ~ \.php$ {          include fastcgi_params;         fastcgi_pass   php_processes;         fastcgi_index index.php;         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;         include fastcgi_params;         } }后来把nginx配置改成这样才可以,不过跟教程上讲的不一样,是通过http://tp5.com/Home/Index/list才访问到list方法。。

时间:4年前