nginx不支持pathinfo 导致thinkphp出错解决办法
location / { 
 if (!-e $request_filename) { 
 rewrite ^(.*)$ /index.php?s=$1 last; 
 break; 
 } 
 }
nginx不支持pathinfo 导致thinkphp出错解决办法

然后项目配置下url模式改为2

'URL_MODEL'=>2,

 

nginx不支持pathinfo 导致thinkphp出错解决办法
location ~ \.php {    #去掉$
      root          H:/PHPServer/WWW;
      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;
 }
nginx不支持pathinfo 导致thinkphp出错解决办法

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-01-02
  • 2021-07-31
  • 2021-11-19
相关资源
相似解决方案