• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
车车大人
博客园    首页    新随笔    联系   管理     

新安装的nginx环境下运行tp框架路由不能用的问题

  1. location ~ \.php {    #去掉$  
  2.      root          H:/PHPServer/WWW;  笔者这里默认是 html;  
  3.      fastcgi_pass   127.0.0.1:9000;  
  4.      fastcgi_index  index.php;  
  5.      fastcgi_split_path_info ^(.+\.php)(.*)$;     #增加这一句  
  6.      fastcgi_param PATH_INFO $fastcgi_path_info;    #增加这一句  
  7.      fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
  8.      include        fastcgi_params;  
  9. } 

 

这是nginx配置的内容需要修改的地方

通往牛逼的路上,在意的只有远方!
posted @ 2018-01-21 19:45  车车大人  阅读(630)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3