Hi,
I installed EE 3.2.1 and I got random “502 Bad Gateway” error from Nginx. This is my server configuration: - Directadmin (custom build2 v. 1.50.0) - Apache web server with Nginx as reverse proxy. - PHP 5.5.34
I found this error message from Nginx log file:
2016/04/08 14:02:08 [error] 7639#0: *2264967 upstream prematurely closed connection while reading response header from upstream, client: X.X.X.X, server: XYZ.com, request: “GET /admin.php HTTP/1.1”, upstream: “http://Y.Y.Y.Y:8080/admin.php”, host: “www.XYZ.com”
Then I bypass Nginx reverse proxy by calling http://Y.Y.Y.Y:8080/admin.php directly and I got “The connection was reset” message from the browser. After that I restart Nginx and I still got “502 Bad Gateway” error. Next step I restart Apache and then problem gone!
So every time I got random “502 Bad Gateway” error I restart Apache and the problem gone. I also has an EE2 website on the same server and it’s running properly. Other websites has no problem as well.
Would you help me please?
Wp
Exactly the same problem! It appeared just after I began to use a new proxy instead of the previous. Could this be the reason or is it something else?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.