Websites shows 502 Bad Gateway or 404 Not Found errors

Refers to:

  • Plesk for Linux

Created:

2016-11-16 13:02:24 UTC

Modified:

2017-02-22 05:10:57 UTC

3

Was this article helpful?


Have more questions?

Submit a request

Websites shows 502 Bad Gateway or 404 Not Found errors

Symptoms

Websites show the 502 Bad Gateway or 404 Not Found errors, but the files exist. Apache process is running.

Cause

Web server configuration files are corrupted or absent.

Resolution

Re-enable Nginx:

  # /usr/local/psa/admin/bin/nginxmng --disable
# /usr/local/psa/admin/bin/nginxmng --enable
# /usr/local/psa/admin/bin/nginxmng --status
Enabled

Or using Plesk UI:

Go to Plesk > Tools & Settings > Services Management

Click Stop on Reverse Proxy Server (nginx) and then Start.

Have more questions? Submit a request
Please sign in to leave a comment.