1. 程式人生 > >Centos 7 nginx php-fpm 報錯

Centos 7 nginx php-fpm 報錯

[error] 2766#0: *120 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 125.35.5.253, server: localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "120.77.183.15"

解決方法:

開啟/usr/local/nginx/conf/nginx.conf,找到這段,

將紅圈中的內容改為下面紅圈中內容:

該錯就解決了。