All websites are showing 502 Bad Gateway or 504 Gateway Timeout

Created:

2016-11-16 13:01:48 UTC

Modified:

2017-05-19 08:03:32 UTC

0

Was this article helpful?


Have more questions?

Submit a request

All websites are showing 502 Bad Gateway or 504 Gateway Timeout

Applicable to:

  • Plesk for Linux

Symptoms

  • All nginx websites throw 504 Gateway Timeout or 502 Bad gateway . After disabling nginx, sites became available.
  • Attempt to connect to any service via telnet from a server console itself failed with a timeout error.
  • ifconfig| grep lo shows an empty output.

Cause

Local loopback network interface was misconfigured

Resolution

Configure and activate local loopback network interface:

~# ifconfig lo 127.0.0.1
Have more questions? Submit a request
Please sign in to leave a comment.