Website shows 504 Gateway Time-out error. Upstream prematurely closed connection while reading response header from upstream.

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 13:25:10 UTC

Modified:

2016-12-21 20:40:19 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website shows 504 Gateway Time-out error. Upstream prematurely closed connection while reading response header from upstream.

Symptoms

Website example.com created on "Zen Cart MVC" shows "504 Gateway Time-out" error.

Web server error log "/var/log/nginx/error.log" contains:

2014/07/18 13:51:31 [error] 18191#0: *3286 upstream prematurely closed connection while reading response header from upstream, client: 1.1.1.1, server: example.com, request: "GET / HTTP/1.1", upstream: "http://1.1.1.1:7080/", host: "example2.com"

Cause

Database server is not properly specified in configurations file of "Zen Cart MVC" .

Resolution

Check that proper database server is specified in "/var/www/vhosts/example.com/httpdocs/includes/configure.php" :

// define our database connection
define('DB_SERVER', '1.1.1.1');
Have more questions? Submit a request
Please sign in to leave a comment.