如何从 PHP-FPM 中获取此 NGINX 203 错误的其余部分
How to get rest of this NGINX 203 error from PHP-FPM
我不断收到来自 NGINX 的 203 错误,我需要一些帮助来解决它。
当我转到 http://localhost, http://localhost/index ... 等时出现此错误。
该网站运行良好。
[error] 60#60: *203 FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ::1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost"
2019/10/25 13:34:35 [error] 60#60: *203 FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ::1, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost", referrer: "http://localhost/"
会议:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /mnt/c/Users/me/src/site;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# Make sure unix socket path matches PHP-FPM configured path above
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
# Prevent ERR_INCOMPLETE_CHUNKED_ENCODING when browser hangs on response
fastcgi_buffering off;
}
}
我假设这可能与此有关:
。但是我不是很懂。
HTTP 代理位于客户端和服务器(源)之间。在某些情况下,HTTP 代理可能会在响应到达客户端之前对其进行更改。
那么,您真的确定您收到的 203 错误来自您的 nginx 服务器吗?
我不断收到来自 NGINX 的 203 错误,我需要一些帮助来解决它。 当我转到 http://localhost, http://localhost/index ... 等时出现此错误。 该网站运行良好。
[error] 60#60: *203 FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ::1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost"
2019/10/25 13:34:35 [error] 60#60: *203 FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ::1, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost", referrer: "http://localhost/"
会议:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /mnt/c/Users/me/src/site;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# Make sure unix socket path matches PHP-FPM configured path above
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
# Prevent ERR_INCOMPLETE_CHUNKED_ENCODING when browser hangs on response
fastcgi_buffering off;
}
}
我假设这可能与此有关:
HTTP 代理位于客户端和服务器(源)之间。在某些情况下,HTTP 代理可能会在响应到达客户端之前对其进行更改。
那么,您真的确定您收到的 203 错误来自您的 nginx 服务器吗?