rewrite or internal redirection cycle while processing nginx重定向报错

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

  

猜你喜欢

转载自www.cnblogs.com/liuquan/p/9003208.html
今日推荐