Apache 502 The proxy server 解决办法

Apache 使用代理出现
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.

Reason: DNS lookup failure for: xxx.xxx.com
错误,解决办法:

在apache配置文件中的httpd.conf或vhost目录中添加

SetEnv force-proxy-request-1.0.1
SetEnv proxy-nokeepalive 1    (加到外面使用与所有主机)

技术分享

本文出自 “silence” 博客,请务必保留此出处http://silencezone.blog.51cto.com/3613477/1703410

文章来自:http://silencezone.blog.51cto.com/3613477/1703410
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3