Как получить остальную часть этой ошибки NGINX 203 из PHP-FPM - PullRequest
0 голосов
/ 25 октября 2019

Я получаю ошибку 203 от NGINX и могу помочь с ее устранением. Я получаю эту ошибку, когда захожу на 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/"

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

}

Я предполагаю, что это может быть как-то связано с этим: Странное поведение Nginx с косыми чертами . Но я не до конца понимаю.

1 Ответ

1 голос
/ 25 октября 2019

HTTP-прокси находится посередине между клиентом и сервером (источник). В некоторых случаях прокси-сервер HTTP может вносить изменения в ответ до того, как он достигнет клиента.

Итак, вы действительно уверены, что получаете сообщение об ошибке 203 от ВАШЕГО nginx-сервера?

...