2018/05/07 15:03:42 [error] 762#0: *3 rewrite or internal redirection cycle while processing "/project/index.php", client: xxxx, server: _, request: "GET /project/ HTTP/1.1", host: XXXX

 

解决办法:

没有添加php解析导致,在nginx.conf文件中添加

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;
        }

  

如果程序报错多次重定向,那可能是url重写if判断死循环了 检查下语句

 

 

 

相关文章:

  • 2021-12-26
  • 2021-09-04
  • 2021-06-26
  • 2021-07-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-01-09
相关资源
相似解决方案