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判断死循环了 检查下语句