500X problems related series unlike 404 not found 301 redirect 200 ok
nginx side proxy readtimeout (Fixed)
500x error fix
client_header_timeout 300;
client_body_timeout 300;
fastcgi_read_timeout 300;
client_max_body_size 32m;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;
if still not solved try below
in case of fastcgi
fastcgi_buffers 8 128k;
fastcgi_buffer_size 256k;
fastcgi_read_timeout 600;
fastcgi_send_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
how to fix 504 gateway nginx timeout error cloudflare 522 524 error in wordpress in vps server.
how to fix 504 gateway nginx timeout error?
504 gateway time out problem description.
This problem is entirely due to slow IP communication between back-end computers, possibly including the Web server. Only the people who set up the network at the site which hosts the Web server can fix this problem.
what is nginx?
Nginx is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server. The nginx project started with a strong focus on high concurrency, high performance and low memory usage.
how nginx causes 504 timeout?
how to fix 504 error in nginx servers.
how to increase the timeout limit in ngnix?
send_timeout 120;
proxy_read_timeout 120;
proxy_connect_timeout 120;
If they are not there you may add them or create a .conf file in /etc/nginx/conf.d/ folder with those values.
Then restart nginx:
# /etc/init.d/nginx restart
read more about this ngnix .org official.

these errors not by cloudflare it’s by your web server.
fix nginx 502 bad gateway
add the following lines into http section :
1
2
|
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
|
1
2
3
4
5
6
7
8
|
http {
.
.
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
.
.
}
|
resource may help you
http://www.nginxtips.com/502-bad-gateway-using-nginx/
http://www.unixmen.com/how-i-fixed-nginx-502-bad-gateway-error/http://stackoverflow.com/questions/3704626/nginx-502-bad-gateway-error-only-in-firefox
Ask a Question:
You must be logged in to post a comment.