天天看点

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    (加到外面使用与所有主机)

<a href="http://s3.51cto.com/wyfs02/M02/74/88/wKiom1YgVd6T7r8YAAGXO_Dwm3Q174.jpg" target="_blank"></a>

本文转自 a120518129 51CTO博客,原文链接:http://blog.51cto.com/silencezone/1703410,如需转载请自行联系原作者