繁体   English   中英

Apache Proxy FCGI错误

[英]Apache proxy fcgi error

我经常担心会导致我们托管的网站崩溃。

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

日志文件Apache error.log的错误消息:

[proxy_fcgi:错误] [pid 6588](32)管道断开:[客户端127.0.0.1:59404] AH01075:将请求分发到以下错误:(将旅传递给输出过滤器)

我该如何解决这个错误?

这是Web服务器的haproxy配置:

“全局”日志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守护程序

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

默认值日志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

前端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_api! {ssl_fc} http模式default_backend httpcache

前端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后端”“ 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