Ari*_*jee 5 apache proxy mod-proxy httpd.conf httpserver
我使用 Apache HTTP Server mod_proxy 作为我的客户端和服务器之间的代理服务器。我能够从我的客户端连接到我的代理服务器。然后客户端能够建立连接并将数据发送到服务器。但在中间,某处连接丢失,并给出以下错误:
(OS 10054)An existing connection was forcibly closed by the remote host. : proxy: prefetch request body failed to 10.131.x.x:80 (10.131.x.x) from 10.131.y.y ()
Run Code Online (Sandbox Code Playgroud)
我曾尝试添加 keep alive 和其他属性,但它没有解决我的问题。这是我的 httpd.config 文件更改:
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<IfModule mod_proxy.c>
ProxyRequests On
ProxyVia On
</IfModule>
<Proxy *>
Order deny,allow
Deny from all
Allow from 10.131.x.x
</Proxy>
Run Code Online (Sandbox Code Playgroud)
还添加了这个变量:
KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 15
Listen 8080
Run Code Online (Sandbox Code Playgroud)
请需要知道是否有人遇到过同样的问题并解决了它。
谢谢,阿林达姆。