• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

502 Bad Gateway nginx error

onlinesolutions

Basic Pleskian
Hi folks,

We are running Plesk 12 (latest version) on openSuse 13.1. The web server is nginx as a proxy in front of Apache. We are running into a 502 Bad Gateway nginx error when trying to send data from a simple form to a php script.

The log shows: upstream prematurely closed connection while reading response header from upstream

It seems that Plesk does not configure nginx properly as some pages, especially pages that are accessed via https have broken headers. The headers of a page that is displaying

HTTP/1.1 400 Bad Request =>
Server => nginx
Date => Sat, 26 Jul 2014 09:53:13 GMT
Content-Type => text/html
Content-Length => 166
Connection => close

Any hint is highly appreciated.

Best Regards

Online Solutions
 
A lot of possible reasons of this error are described in KB articles. Have you tried to find solution there with KB search engine and "502 Bad Gateway nginx" phrase?
 
A lot of possible reasons of this error are described in KB articles. Have you tried to find solution there with KB search engine and "502 Bad Gateway nginx" phrase?
Thanks for your reply. Yes, we spend hours researching the forum and other resources. We assume that the basics are covered by the configuration of Plesk.

Any clues and hints are appreciated.
 
Back
Top