无法读取FastCGI标头,nginx代理

时间:2018-12-05 07:45:32

标签: php nginx

我正在将Magento 2与Nginx一起用于Apache(在DirectAdmin中)和PHP-PFM的SSL终止。除了什么时候,一切都运转良好。

  • 用户创建一个新的用户帐户
  • 用户通过自己的帐户更新新闻通讯订阅。

在浏览器中显示503服务不可用。 在错误日志中:

[proxy_fcgi:error] [pid 9897:tid 140081599657728] [client 127.0.0.1:48686] AH01067: Failed to read FastCGI header, referer: [url in use]

[proxy_fcgi:error] [pid 9897:tid 140081599657728] (104)Connection reset by peer: [client 127.0.0.1:48686] AH01075: Error dispatching request to : , referer: [url in use]

我已经使用Varnish,我已经使用Redis,我已经使用OPCache,我已经测试过将fastcgi添加到Nginx配置中(没有经验)。

我觉得创建帐户后会发生某种重定向(发送电子邮件,创建帐户)。然后显示503错误。

我认为,nginx配置中一定有一些未命中的配置。

任何可以帮助我的人。我开始为这个问题发疯。我想我已经阅读了Google上的所有内容。

Ngix配置的一部分:

    location ~ \.php$
    {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include /etc/nginx/fastcgi_params;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include /etc/nginx/nginx_limits.conf;

        if (-f $request_filename)
        {
            fastcgi_pass unix:/usr/local/php|PHP1_RELEASE|/sockets/|USER|.sock;
        }
    }

    location /
    {
    # access_log off;
    proxy_buffering off;
    proxy_pass http://xxxx:6081;
    proxy_set_header X-Real-IP  $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Port 443;
    proxy_set_header Host $host;
    }

0 个答案:

没有答案
相关问题