Apache 2.4代理和Tomcat8.5

时间:2019-02-21 22:35:25

标签: apache reverse-proxy tomcat8

我将Apache2.4代理用于http / 2和tomcat8.5前面的其他功能。 它似乎可以正常工作,但是在我发现的错误日志中

[Thu Feb 21 12:59:48.096033 2019] [proxy_http:error] [pid 2440:tid 140184444172032] (104)Connection reset by peer: ...
[Thu Feb 21 13:15:23.531405 2019] [proxy_http:error] [pid 2440:tid 140184393815808] (70008)Partial results are valid but processing is incomplete: [client 212.234.83.94:63283] AH01095: prefetch request body failed to 127.0.0.1:8080 (127.0.0.1)...
[Thu Feb 21 13:22:51.552977 2019] [proxy_http:error] [pid 2440:tid 140184435779328] (70007)The timeout specified has expired: [client 92.184.112.25:54042] AH01095: prefetch request body failed to 127.0.0.1:8080 (127.0.0.1)...

我尝试一些带有或不带有选项或环境变量的配置:

  ProxyPass / http://127.0.0.1:8080/ retry=0 Keepalive=On timeout=600
  ProxyPassReverse /  http://localhost:8080/
#  SetEnv  proxy-initial-not-pooled  1
#  SetEnv force-proxy-request-1.0 1
#  SetEnv proxy-nokeepalive 1

并增加tomcat配置中的超时。但这没有效果。

0 个答案:

没有答案