• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Issue Random 502 Bad Gateway

Stuzzi

New Pleskian
Hello!

As of yesterday, all of my websites in Plesk version 18.0.31 are showing random 502 Bad Gateway. Sometimes I can load 3 pages before the message appears. Sometimes it shows up right when the page loads and disappears when I refresh the page. I had to take the site offline, but the problem can be seen here Domain Default page

Many thanks for your help!
Greetings Felix
 
Last edited by a moderator:
The reason is located with Apache, it is not responding to Nginx requests properly. There can my several causes. For example:
- Verify that your server's public IP address is whitelisted in Fail2Ban.
- Look into /var/www/vhosts/<domain name>/logs error log files to find out more why Apache is not responding
- Check your system resources and the status of the service, e.g.
Enough RAM?
# free
Enough disk space?
# df
Is the service up reliably or are there errors shown in the journal excerpt?
# service apache2 status
or
# service httpd status
 
Thank you very much for your response! Some of the things I actually had already done because of your advice in other threads. It turned out to be a hardware issue.

Again THANK YOU VERY MUCH! You really saved me already a couple of times ;-)
 
Back
Top