doulong4169 2018-12-05 07:45
浏览 1486

无法读取FastCGI标头,nginx代理

I am using Magento 2 with Nginx for SSL termination with Apache (in DirectAdmin) and PHP-PFM. Everything is working good except when.

  • A user creates a new user account
  • User update newsletter subscription from its own account.

In the browser shows, 503 service unavailable. In the error log:

[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]

I have turned of Varnish, I have turned of Redis, I have turned of OPCache, I have tested to add fastcgi to Nginx config (No experience in that).

I have a feeling what happens is some kind of redirect after account is created (emails are sent out, account is created). And then the 503 error shows.

Must be some miss configuration in the nginx config, I assume.

Anybody out there that can help me. I am starting going crazy about this problem. I have have read everything on Google, I think.

Parts of Ngix config:

    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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
    • ¥15 C# datagridview 单元格显示进度及值
    • ¥15 thinkphp6配合social login单点登录问题
    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配