【发布时间】:2017-11-26 13:14:30
【问题描述】:
我有 Linux RHEL 服务器,并在上面安装了 Apached HTTP 代理服务器。我有第二台 Windows 服务器,它在 IIS 服务器上安装了 .net 应用程序。
我正在使用代理服务器将调用重定向到 IIS 服务器。但几乎在 30 分钟后,HTTP error_log 上出现错误
[error] [client xxx.xxx.xx.xxx] (104)Connection reset by peer: proxy: error reading status line from remote server xxx.xxx.xxx.xx (IIS Server IP) [错误] [客户端 xxx.xxx.xx.xxx] 代理:从 /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