Proxy Error The proxy server received an invalid response from an upstream server.

apache报错
Proxy?Error
The?proxy?server?received?an?invalid?response?from?an?upstream?server.
The?proxy?server?could?not?handle?the?request?GET?/.
Reason:?Error?reading?from?remote?server

apache官网文档:
For circumstances where mod_proxy is sending requests to an origin server that doesn’t properly implement keepalives or HTTP/1.1, there are two environment variables that can force the request to use HTTP/1.0 with no keepalive. These are set via the SetEnv directive.
These are the force-proxy-request-1.0 and proxy-nokeepalive notes.
去百度翻译去吧;
解决方案:
VirtualHost 绑定文件中添加

SetEnv force-proxy-request-1.0.1
SetEnv proxy-nokeepalive 1

今天帮一个客户解决这个问题,没找到VirtualHost 文件,去php.ini里面修改了,问题解决了。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.