错误(104):通过对等方重置连接 - Linux RHEL,Apache HTTP Server和IIS服务器

问题描述 投票:2回答:1

我有Linux RHEL服务器,我安装了Apached HTTP代理服务器。我有第二台Windows服务器,它在IIS服务器上安装了.net应用程序。

我使用代理服务器将调用重定向到IIS服务器。但差不多30分钟后,在HTTP error_log上得到以下错误

[错误] [client xxx.xxx.xx.xxx](104)通过对等方重置连接:代理:从远程服务器读取状态行xxx.xxx.xxx.xx(IIS服务器IP)[错误] [客户端xxx.xxx .xx.xxx] proxy:从/ web / url / 2920357返回的远程服务器读取错误

我保留了httpd.conf文件中的所有默认设置,并在支持设置下面添加了重定向请求

<VirtualHost *:80>
          ServerName server_name
          ProxyRequests     off
          ProxyPreserveHost on
          ProxyPass / http://IIS_SERVER_IP/
          ProxyPassReverse / http://IIS_SERVER_IP/

          <Proxy *>
               Order deny,allow
               Allow from all
          </Proxy></VirtualHost>

如果我必须在代理服务器中进行任何其他设置,请告知我们。

发现类似的问题here,但他们没有提供任何解决方案。

linux apache iis proxy reverse-proxy
1个回答
1
投票

在你提供的链接上,我找到了可能的reasonworkaround

解决方法:

确保已启用mod_env并将其设置为httpd.conf

SetEnv force-proxy-request-1.0 1

SetEnv proxy-nokeepalive 1

你试过吗?

© www.soinside.com 2019 - 2024. All rights reserved.