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

无法读取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 乘性高斯噪声在深度学习网络中的应用
    • ¥15 运筹学排序问题中的在线排序
    • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
    • ¥30 求一段fortran代码用IVF编译运行的结果
    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥30 python代码,帮调试,帮帮忙吧