Apache proxy_ajp:错误(70007)指定的超时已过期:

Apache proxy_ajp:错误(70007)指定的超时已过期:,apache,tomcat,Apache,Tomcat,我在错误日志中得到错误。我能够计算出我需要增加ProxyTimeout 但是,我找不到可以在哪里更改它。我所能做的就是将它添加到server.xml: <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="600000" redirectPort="8443" /> 我

我在
错误日志中得到错误。我能够计算出我需要增加
ProxyTimeout

但是,我找不到可以在哪里更改它。我所能做的就是将它添加到
server.xml

<Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="600000"
               redirectPort="8443" />
我还将其添加到了
httpd.conf

TimeOut 600
我已经重新启动了Tomcat服务器,但上述两种配置都没有帮助

顺便说一句,这是确切的错误,我不明白为什么有代理提到。我没有通过任何代理服务器连接。。。问题发生在我提交表单时,这会触发一些艰难的处理。然后,它将在约60秒后超时。但是,程序仍在运行,只有请求超时

错误:

[Thu Aug 13 07:34:21.677693 2015] [proxy_ajp:error] [pid 1515] (70007)The timeout specified has expired: AH01030: ajp_ilink_receive() can't receive header
[Thu Aug 13 07:34:21.677769 2015] [proxy_ajp:error] [pid 1515] [client 212.130.108.58:52206] AH00992: ajp_read_header: ajp_ilink_receive failed, referer: http://52.17.109.177/Visma_UploadInterface/MappingServlet
[Thu Aug 13 07:34:21.677782 2015] [proxy_ajp:error] [pid 1515] (70007)The timeout specified has expired: [client 212.130.108.58:52206] AH00878: read response failed from 127.0.0.1:8009 (localhost), referer: http://52.17.109.177/Visma_UploadInterface/MappingServlet

我通过将这两行简单的代码添加到
httpd.conf
文件中解决了这个问题:

Timeout 600
ProxyTimeout 600

我还重新启动了整个服务器,而不仅仅是Tomcat。不知道这是否必要,但似乎是这样。

我已经解决了它,修改了现有的虚拟主机配置

<Proxy "unix:/run/php/php7.2-fpm-example.sock|fcgi://localhost">
   ProxySet timeout= 600
</Proxy>

<FilesMatch \.php$>
  SetHandler "proxy:fcgi://localhost"
</FilesMatch>

代理设置超时=600
SetHandler“代理:fcgi://localhost"

您真正需要的是
ProxyTimeout 600
,然后重新启动Apache(而不是Tomcat)。
<Proxy "unix:/run/php/php7.2-fpm-example.sock|fcgi://localhost">
   ProxySet timeout= 600
</Proxy>

<FilesMatch \.php$>
  SetHandler "proxy:fcgi://localhost"
</FilesMatch>