We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

"502 Bad Gateway" problem with EE3

News and General

wp's avatar
wp
2 posts
9 years ago
wp's avatar wp

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

       
Fekun's avatar
Fekun
1 posts
8 years ago
Fekun's avatar Fekun

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?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.