• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Nginx error 502

Pascal_Netenvie

Regular Pleskian
Hello
Since this morning one of my server have a 502 NGINX error on all websites.

Nothing that help in apache or nginx error log ...

I already have these lines in our own conf file for NGINX but it don't help (i also tried to set it off) :

fastcgi_param HTTP_PROXY ""; #httpoxy
fastcgi_read_timeout 300;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 16k;
proxy_buffer_size 16k;
proxy_buffers 8 16k;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
gzip on;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml image/x-icon image/bmp image/svg+xml;
gzip_vary on;
gzip_static on;
expires 1w;
gzip_buffers 16 8k;
gzip_comp_level 5;
gzip_min_length 500;

If someone have an idea ?
Regards.
 
I would try.

1. Disable nginx
2. Reconfigure apache for all domains
3 Re enable nginx
 
Last edited by a moderator:
When you try to start nginx with
# service nginx restart
it should give you specific error messages what is wrong on startup. It logs the events, too. If not in /var/log/nginx/error.log then in /var/log/messages.
 
Hello,
I fixed it. I didn't remember but i already had this problem.
It's Fail2ban that ban server IP in apache jail ...

So to solved it i just added server IP to whitelist.
 
Back
Top