简体   繁体   English

Apache Proxy FCGI错误

[英]Apache proxy fcgi error

I have a recurrent worry that fell the site that we host. 我经常担心会导致我们托管的网站崩溃。

  • OS: Ubuntu 16.04 server 操作系统:Ubuntu 16.04 server
  • Apache: 2.4.18 阿帕奇:2.4.18
  • Php-fpm version: 7.0 php-fpm版本:7.0

The error message in the log file Apache error.log : 日志文件Apache error.log的错误消息:

[proxy_fcgi: error] [pid 6588] (32) Broken pipe: [client 127.0.0.1:59404] AH01075: Error dispatching request to: (passing brigade to output filters) [proxy_fcgi:错误] [pid 6588](32)管道断开:[客户端127.0.0.1:59404] AH01075:将请求分发到以下错误:(将旅传递给输出过滤器)

How can I solve this error? 我该如何解决这个错误?

here is the haproxy configuration of the web server: 这是Web服务器的haproxy配置:

"global" log 127.0.0.1 local0 #log / dev / log local0 #log / dev / log local1 notice chroot / var / lib / haproxy socket stats /run/haproxy/admin.sock mode 660 level admin stats timeout 30s user haproxy group haproxy daemon “全局”日志127.0.0.1 local0#log / dev / log local0#log / dev / loglocal1通知chroot / var / lib / haproxy套接字状态/run/haproxy/admin.sock模式660级admin状态超时30s用户haproxy组haproxy守护程序

# Default SSL material locations ca-base / etc / ssl / certs crt-base / etc / ssl / private #默认SSL资料位置ca-base / etc / ssl / certs crt-base / etc / ssl / private

defaults log 127.0.0.1 local0 global log http mode maxconn 4096 option httplog option dontlognull forwardfor option http-server-close option redispatch option retries 3 timeout connect 5000 customer timeout 600s timeout server 600s errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 /etc/haproxy/errors/408.http errorfile 500 /etc/haproxy/errors/500.http errorfile 502 /etc/haproxy/errors/502.http errorfile 503 /etc/haproxy/errors/503.http errorfile 504 /etc/haproxy/errors/504.http 默认值日志127.0.0.1 local0全局日志http模式maxconn 4096选项httplog选项dontlognull forwardfor选项http-server-close选项redispatch选项重试3超时连接5000客户超时600s超时服务器600s错误文件400 /etc/haproxy/errors/400.http错误文件403 /etc/haproxy/errors/403.http错误文件408 /etc/haproxy/errors/408.http错误文件500 /etc/haproxy/errors/500.http错误文件502 /etc/haproxy/errors/502.http错误文件503 / etc / haproxy / errors / 503.http错误文件504 /etc/haproxy/errors/504.http

frontend 80 bind *: 80 acl is_box hdr_sub (User-Agent) -i box acl is_box_api path_beg -i / api / box redirect scheme https code 308 if! 前端80绑定*:80 acl is_box hdr_sub(User-Agent)-i box acl is_box_api path_beg -i / api / box重定向方案https代码308如果! is_box! is_box! is_box_api! is_box_api! {ssl_fc} http mode default_backend httpcache {ssl_fc} http模式default_backend httpcache

frontend 443 #bind *: 443 ssl crt /usr/local/etc/haproxy/certs/prod-calde.ucs.com.pem ssl crt / usr / local / etc / haproxy / certs bind *: 443 ssl crt /usr/local/etc/haproxy/certs/prod-calde.ucs.com.pem default_backend httpcache http mode 前端443 #bind *:443 ssl crt /usr/local/etc/haproxy/certs/prod-calde.ucs.com.pem ssl crt / usr / local / etc / haproxy / certs绑定*:443 ssl crt / usr / local / etc / haproxy / certs / prod-calde.ucs.com.pem default_backend httpcache http模式

"httpcache backend" " http mode acl forwarded_proto hdr_cnt (X-Forwarded-Proto) eq 0 acl forwarded_port hdr_cnt (X-Forwarded-Port) eq 0 http-request add-header X-Forwarded-Port% [dst_port] if forwarded_port http-request add-header X-Forwarded-Proto https if {ssl_fc} forwarded_proto server node1 127.0.0.1:6081 " “ httpcache后端”“ http模式如果{ssl_fc} forwarded_proto服务器node1 127.0.0.1:6081“,则请求添加头X-Forwarded-Proto https

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM