proxy_http 超时错误

proxy_http 超时错误

你好,有人能帮我解决以下错误吗

[Tue Dec 13 21:07:12.176702 2016] [proxy_http:error] [pid 9437372:tid 5398] (78)Connection timed out: [client 111.113.130.243:45615] AH01102: error reading status line from remote server 192.168.10.20:80
[Tue Dec 13 21:07:12.176790 2016] [proxy:error] [pid 9437372:tid 5398] [client 111.113.130.243:45615] AH00898: Error reading from remote server returned by /deto/javax.faces.resource/dynamiccontent.properties
[Tue Dec 13 21:36:12.261230 2016] [proxy_http:error] [pid 10485878:tid 5655] (78)Connection timed out: [client 111.113.130.243:11084] AH01102: error reading status line from remote server 192.168.10.20:80
[Tue Dec 13 21:36:12.261333 2016] [proxy:error] [pid 10485878:tid 5655] [client 111.113.130.243:11084] AH00898: Error reading from remote server returned by /deto/javax.faces.resource/dynamiccontent.properties
[Tue Dec 13 22:47:09.485419 2016] [proxy_http:error] [pid 9437372:tid 2828] (78)Connection timed out: [client 111.113.130.243:48852] AH01102: error reading status line from remote server 192.168.10.20:80
[Tue Dec 13 22:47:09.485497 2016] [proxy:error] [pid 9437372:tid 2828] [client 111.113.130.243:48852] AH00898: Error reading from remote server returned by /deto/javax.faces.resource/jsf.js
[Tue Dec 13 22:51:09.497259 2016] [proxy_http:error] [pid 6815772:tid 4370] (78)Connection timed out: [client 111.113.130.243:51259] AH01102: error reading status line from remote server 192.168.10.20:80
[Tue Dec 13 22:51:09.497365 2016] [proxy:error] [pid 6815772:tid 4370] [client 111.113.130.243:51259] AH00898: Error reading from remote server returned by /deto/javax.faces.resource/UKDGD56DadAKDJJADKkdj.js
[Tue Dec 13 22:52:09.500000 2016] [proxy_http:error] [pid 10485878:tid 5912] (78)Connection timed out: [client 111.113.130.243:52749] AH01102: error reading status line from remote server 192.168.10.20:80

我们正在使用 Apache 反向代理并查看 vs 配置

ProxyTimeout 1800
ProxyPreserveHost On
ProxyPass           /  http://192.168.10.20/ connectiontimeout=1800 timeout=1800
ProxyPassReverse    /  http://192.168.10.20/ 

答案1

https://httpd.apache.org/docs/2.4/mod/mod_proxy_http.html

代理初始未池化 如果设置了此变量,则如果客户端请求是前端连接上的初始请求,则不会重用任何池连接。这避免了“代理:从远程服务器读取状态行时出错”错误消息是由竞争条件引起的,即在代理检查连接之后,代理发送的数据到达后端之前,后端服务器关闭了池连接。必须记住,设置此变量降低绩效,尤其是对于 HTTP/1.0 客户端。

相关内容