从浏览器中,网址正在运行。当我尝试使用PHP卷曲时 - 我正在
502 - Bad Gateway error
这是我的代码:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . $query_string);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
echo $data;
错误 -
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.4.4</center>
</body>
</html>
有什么建议吗?