I have a Mac OS X Server with a PHP script that send images on a Amazon S3 (using the Amazon PHP SDK).
Sometimes, the images can be heavy, and the upload on Amazon S3 takes time, and after approximately 60 secondes, I have this error :
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>502 Proxy Error</title>
</head>
<body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.
<br />
The proxy server could not handle the request
<em>
<a href="/insert.php">POST /insert.php</a>
</em>.
<p>
Reason:
<strong>Error reading from remote server</strong>
</p>
</p>
</body>
</html>
I am on Mac OSX 10.11.5 (El Capitan), and my Server tools are on version 5.1.5.
Do you have a solution to fix this error please ?