Proxy Error ——apache proxy 问题解决一则
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /cmd/LessonPoolManageControl.
Reason: Error reading from remote server
server error啥意思From Tangbuhus blog
公司一台备用服务器,架设的是asp,,php,jsp 全能环境。
用apache做代理,出现状况:
apache报错是:Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /concert/fw/. Reason: Error reading from remote server
用apache做代理,出现状况:
apache报错是:Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /concert/fw/. Reason: Error reading from remote server
查阅了一些资料:
APACHE官方中文说明,关于协议调整
当mod_proxy向一个没有正确实现持久连接(KeepAlive)或HTTP/1.1的原始服务器发送请求的时候,可以通过设置两个环境变量来发送 不带持久连接(KeepAlive)的HTTP/1.0请求。这两个变量是通过SetEnv指令设置的。
以下是force-proxy-request-1.0和proxy-nokeepalive的例子:
<Location /buggyappserver/>
ProxyPass buggyappserver:7001/foo/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
ProxyPass buggyappserver:7001/foo/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
于是我们可以这样修改 f
<VirtualHost *:80>
ServerAdmin asion@mail
ServerAdmin asion@mail
ServerName www.domain
ProxyPass / 192.168.0.92
ProxyPassReverse / 192.168.0.92
SetEnv force-proxy-request-1.0.1
SetEnv proxy-nokeepalive 1
</virtualHost>
然后重启Apache, 刷新了N次,正常!!
ProxyPass / 192.168.0.92
ProxyPassReverse / 192.168.0.92
SetEnv force-proxy-request-1.0.1
SetEnv proxy-nokeepalive 1
</virtualHost>
然后重启Apache, 刷新了N次,正常!!
如果是虚拟主机,那就修改f
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论