如何从PHP-FPM中获得此NGINX 203错误的其余部分

问题描述 投票:0回答:1

我一直从NGINX收到203错误,可以使用一些帮助来解决它。我转到http://localhosthttp://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/"

Conf:

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

}

我假设它可能与此有关:Strange Nginx behavior with trailing slashes。但我不完全了解。

php nginx fpm
1个回答
0
投票

HTTP代理位于客户端和服务器之间(中间)。在某些情况下,HTTP代理可能会在响应到达客户端之前对其进行更改。

所以,您真的确定您的Nginx服务器发出了203错误消息吗?

© www.soinside.com 2019 - 2024. All rights reserved.